]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8712: Eliminate use of _cancel_timer_ex
authorVaishali Thakkar <vthakkar1994@gmail.com>
Fri, 6 Mar 2015 10:53:35 +0000 (16:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 14:46:07 +0000 (15:46 +0100)
commitd2b89d582ebc9e7a26e675d2087a80a585483ff4
treeef117cb7292bdd08336dcccdef47c5715ccad46b
parentf905d33cc2aa65326851e62f38daa5525fa0b533
Staging: rtl8712: Eliminate use of _cancel_timer_ex

Use timer API function del_timer_sync instead of driver
specific function _cancel_timer_ex as besides deactivating
a timer, it ensures that the timer is stopped on all
CPUs before the driver exists. Also, definition of function
_cancel_timer_ex 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; @@

- _cancel_timer_ex (&x);
+ del_timer_sync (&x);

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/os_intfs.c
drivers/staging/rtl8712/osdep_service.h
drivers/staging/rtl8712/rtl8712_led.c
drivers/staging/rtl8712/rtl871x_mlme.c
drivers/staging/rtl8712/rtl871x_pwrctrl.c
drivers/staging/rtl8712/rtl871x_sta_mgt.c