[PATCH] Staging: rtl8192e: Timer setup using macro rather assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



setup_timer is used for timer parameter setup rather than direct
assignment

Signed-off-by: Gnanachandran Dhanapal <gdhanapa@xxxxxxxxxxx>
---
 drivers/staging/rtl8192e/rtllib_module.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c
index 32cc8df..7ad1541 100644
--- a/drivers/staging/rtl8192e/rtllib_module.c
+++ b/drivers/staging/rtl8192e/rtllib_module.c
@@ -59,9 +59,8 @@ EXPORT_SYMBOL(rt_global_debug_component);
 
 void _setup_timer(struct timer_list *ptimer, void *fun, unsigned long data)
 {
-	ptimer->function = fun;
-	ptimer->data = data;
 	init_timer(ptimer);
+	setup_timer(ptimer, fun, data);
 }
 
 static inline int rtllib_networks_allocate(struct rtllib_device *ieee)
-- 
1.7.9.5
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux