summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/os_dep/recv_linux.c
diff options
context:
space:
mode:
authorVaishali Thakkar <vthakkar1994@gmail.com>2015-03-11 11:41:24 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-16 16:07:15 +0100
commit28af7ea81e161eadb48051ec0e280666e925ccd8 (patch)
tree4195b01b082bf9f0d8a3566fb00311e962ef3694 /drivers/staging/rtl8188eu/os_dep/recv_linux.c
parent4d4efe3e95805982b1d8f3f54203c67ba6687338 (diff)
Staging: rtl8188eu: 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 set and setup the timer. To be compatible with the changes, argument types of referenced functions are changed. Also, definition of function _init_timer is removed as it is no longer needed after this change. Here, these cases are handled 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/rtl8188eu/os_dep/recv_linux.c')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/recv_linux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/recv_linux.c b/drivers/staging/rtl8188eu/os_dep/recv_linux.c
index 05427c489b3f..05701328dce4 100644
--- a/drivers/staging/rtl8188eu/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/recv_linux.c
@@ -193,7 +193,8 @@ _recv_indicatepkt_drop:
void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl)
{
- struct adapter *padapter = preorder_ctrl->padapter;
- _init_timer(&(preorder_ctrl->reordering_ctrl_timer), padapter->pnetdev, rtw_reordering_ctrl_timeout_handler, preorder_ctrl);
+ setup_timer(&preorder_ctrl->reordering_ctrl_timer,
+ rtw_reordering_ctrl_timeout_handler,
+ (unsigned long)preorder_ctrl);
}