]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: r8188eu: Remove wrapper routine _init_workitem()
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 14 Feb 2014 22:54:15 +0000 (16:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:39:27 +0000 (12:39 -0800)
This is simply another name for INIT_WORK().

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/core/rtw_led.c
drivers/staging/rtl8188eu/include/osdep_service.h

index bc7873604a898a09b223958594605a5f485bd01b..c0a0a521e5917363909c38af7f8ddec30818e69f 100644 (file)
@@ -84,7 +84,7 @@ int _rtw_init_evt_priv(struct evt_priv *pevtpriv)
        atomic_set(&pevtpriv->event_seq, 0);
        pevtpriv->evt_done_cnt = 0;
 
-       _init_workitem(&pevtpriv->c2h_wk, c2h_wk_callback, NULL);
+       INIT_WORK(&pevtpriv->c2h_wk, c2h_wk_callback);
        pevtpriv->c2h_wk_alive = false;
        pevtpriv->c2h_queue = rtw_cbuf_alloc(C2H_QUEUE_MAX_LEN+1);
 
index afac5370984368da23c7fe9b330e9d68b198d9ac..b9c9fc09b7f0b133156d3307892df28a18950d88 100644 (file)
@@ -80,7 +80,7 @@ void InitLed871x(struct adapter *padapter, struct LED_871x *pLed, enum LED_PIN_8
 
        _init_timer(&(pLed->BlinkTimer), padapter->pnetdev, BlinkTimerCallback, pLed);
 
-       _init_workitem(&(pLed->BlinkWorkItem), BlinkWorkItemCallback, pLed);
+       INIT_WORK(&(pLed->BlinkWorkItem), BlinkWorkItemCallback);
 }
 
 
index 5cf13a614e21bba8deb7d4caa181016a75ea0579..8f8596dee032bdf84093597b46ec0a99c5fc9f88 100644 (file)
@@ -106,12 +106,6 @@ static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled)
 #define RTW_DECLARE_TIMER_HDL(name) \
        void RTW_TIMER_HDL_NAME(name)(RTW_TIMER_HDL_ARGS)
 
-static inline void _init_workitem(struct work_struct *pwork, void *pfunc,
-                                 void *cntx)
-{
-       INIT_WORK(pwork, pfunc);
-}
-
 static inline void _set_workitem(struct work_struct *pwork)
 {
        schedule_work(pwork);