diff options
author | Vaishali Thakkar | 2015-03-03 18:04:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-03-06 18:54:34 +0100 |
commit | e922df7d3e946529981860d4bdd707a9cb59fc0d (patch) | |
tree | 1299b4d4058fb75d113d0b92e6722ff74042b227 /drivers/staging/rtl8712/osdep_service.h | |
parent | staging: rtl8192u: ieee80211: replace memset(x,0,ETH_ALEN) by eth_zero_addr(x) (diff) | |
download | kernel-qcow2-linux-e922df7d3e946529981860d4bdd707a9cb59fc0d.tar.gz kernel-qcow2-linux-e922df7d3e946529981860d4bdd707a9cb59fc0d.tar.xz kernel-qcow2-linux-e922df7d3e946529981860d4bdd707a9cb59fc0d.zip |
Staging: rtl8712: Eliminate use of _init_timer
This patch introduces the use of API function setup_timer
instead of driver specific function _init_timer as it is
the preferred and standard way to setup and set the timer.
To be compatible with the change, argument types of
referenced functions are changed. Also, definition of
function _init_timer is removed as it is no longer needed
after this change.
This is done using Coccinelle and semantic patch used for
this is as follows:
@@ expression x, y; identifier a, b;@@
- _init_timer (&x, y, a, b);
+ setup_timer (&x, a, (unsigned long)b);
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/osdep_service.h')
-rw-r--r-- | drivers/staging/rtl8712/osdep_service.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h index 54c4c470cd8e..c6dc3629f4d2 100644 --- a/drivers/staging/rtl8712/osdep_service.h +++ b/drivers/staging/rtl8712/osdep_service.h @@ -60,15 +60,6 @@ struct __queue { #define LIST_CONTAINOR(ptr, type, member) \ ((type *)((char *)(ptr)-(SIZE_T)(&((type *)0)->member))) -static inline void _init_timer(struct timer_list *ptimer, - struct net_device *padapter, - void *pfunc, void *cntx) -{ - ptimer->function = pfunc; - ptimer->data = (addr_t)cntx; - init_timer(ptimer); -} - static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled) { del_timer(ptimer); |