diff options
author | James A Shackleford <shack@linux.com> | 2014-07-09 15:10:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 12:30:46 -0700 |
commit | f2355b69ef829bfc62391e7f38bbf5e6cbb057b0 (patch) | |
tree | 242c8ffa6ebb6b7a784b16dd0b4969c29d2d3c78 /drivers/staging/rtl8712 | |
parent | 9f952489fd05b376f4f1e2518dac20b996f8f096 (diff) |
staging: rtl8712: remove wrapper function _set_workitem()
The inline function _set_workitem() simply wraps schedule_work(). Removed.
Signed-off-by: James A Shackleford <shack@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/osdep_service.h | 5 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_led.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_pwrctrl.c | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h index 2cf9a0200141..43795e77940e 100644 --- a/drivers/staging/rtl8712/osdep_service.h +++ b/drivers/staging/rtl8712/osdep_service.h @@ -81,11 +81,6 @@ static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled) *bcancelled = true; /*true ==1; false==0*/ } -static inline void _set_workitem(_workitem *pwork) -{ - schedule_work(pwork); -} - #ifndef BIT #define BIT(x) (1 << (x)) #endif diff --git a/drivers/staging/rtl8712/rtl8712_led.c b/drivers/staging/rtl8712/rtl8712_led.c index a84ae2f27497..56e8add30a20 100644 --- a/drivers/staging/rtl8712/rtl8712_led.c +++ b/drivers/staging/rtl8712/rtl8712_led.c @@ -827,7 +827,7 @@ static void BlinkTimerCallback(unsigned long data) if ((pLed->padapter->bSurpriseRemoved == true) || (pLed->padapter->bDriverStopped == true)) return; - _set_workitem(&(pLed->BlinkWorkItem)); + schedule_work(&pLed->BlinkWorkItem); } /* Description: diff --git a/drivers/staging/rtl8712/rtl871x_pwrctrl.c b/drivers/staging/rtl8712/rtl871x_pwrctrl.c index 6cf051fcb382..89ce527940fe 100644 --- a/drivers/staging/rtl8712/rtl871x_pwrctrl.c +++ b/drivers/staging/rtl8712/rtl871x_pwrctrl.c @@ -83,7 +83,7 @@ void r8712_set_ps_mode(struct _adapter *padapter, uint ps_mode, uint smart_ps) pwrpriv->bSleep = false; pwrpriv->pwr_mode = ps_mode; pwrpriv->smart_ps = smart_ps; - _set_workitem(&(pwrpriv->SetPSModeWorkItem)); + schedule_work(&pwrpriv->SetPSModeWorkItem); } } @@ -133,7 +133,7 @@ static void _rpwm_check_handler (struct _adapter *padapter) padapter->bSurpriseRemoved == true) return; if (pwrpriv->cpwm != pwrpriv->rpwm) - _set_workitem(&(pwrpriv->rpwm_workitem)); + schedule_work(&pwrpriv->rpwm_workitem); } static void SetPSModeWorkItemCallback(struct work_struct *work) |