From: Jes Sorensen Date: Fri, 16 May 2014 08:04:22 +0000 (+0200) Subject: staging: rtl8723au: Remove unused HAL interrupt function wrappers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=10ce2646494f7e2d92f7ace9865524dd2448d5a6;p=linux-beck.git staging: rtl8723au: Remove unused HAL interrupt function wrappers Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/hal/hal_intf.c b/drivers/staging/rtl8723au/hal/hal_intf.c index dba428ac21ed..1d47539c220e 100644 --- a/drivers/staging/rtl8723au/hal/hal_intf.c +++ b/drivers/staging/rtl8723au/hal/hal_intf.c @@ -34,23 +34,6 @@ void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter) padapter->HalFunc.DeInitSwLeds(padapter); } -void rtw_hal_enable_interrupt23a(struct rtw_adapter *padapter) -{ - if (padapter->HalFunc.enable_interrupt) - padapter->HalFunc.enable_interrupt(padapter); - else - DBG_8723A("%s: HalFunc.enable_interrupt is NULL!\n", __FUNCTION__); - -} -void rtw_hal_disable_interrupt23a(struct rtw_adapter *padapter) -{ - if (padapter->HalFunc.disable_interrupt) - padapter->HalFunc.disable_interrupt(padapter); - else - DBG_8723A("%s: HalFunc.disable_interrupt is NULL!\n", __FUNCTION__); - -} - void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level) { struct rtw_adapter *padapter; @@ -70,10 +53,3 @@ void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level) } else rtl8723a_update_ramask(padapter, psta->mac_id, rssi_level); } - -s32 rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter) -{ - if (padapter->HalFunc.interrupt_handler) - return padapter->HalFunc.interrupt_handler(padapter); - return _FAIL; -} diff --git a/drivers/staging/rtl8723au/include/hal_intf.h b/drivers/staging/rtl8723au/include/hal_intf.h index 6e32215a0b04..b2dcd1da9713 100644 --- a/drivers/staging/rtl8723au/include/hal_intf.h +++ b/drivers/staging/rtl8723au/include/hal_intf.h @@ -63,10 +63,6 @@ enum hal_odm_variable { struct hal_ops { void (*InitSwLeds)(struct rtw_adapter *padapter); void (*DeInitSwLeds)(struct rtw_adapter *padapter); - - void (*enable_interrupt)(struct rtw_adapter *padapter); - void (*disable_interrupt)(struct rtw_adapter *padapter); - s32 (*interrupt_handler)(struct rtw_adapter *padapter); }; enum rt_eeprom_type { @@ -119,14 +115,9 @@ int rtw_hal_init23a(struct rtw_adapter *padapter); int rtw_hal_deinit23a(struct rtw_adapter *padapter); void rtw_hal_stop(struct rtw_adapter *padapter); -void rtw_hal_enable_interrupt23a(struct rtw_adapter *padapter); -void rtw_hal_disable_interrupt23a(struct rtw_adapter *padapter); - void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level); void rtw_hal_clone_data(struct rtw_adapter *dst_padapter, struct rtw_adapter *src_padapter); -s32 rtw_hal_interrupt_handler23a(struct rtw_adapter *padapter); - void hw_var_set_correct_tsf(struct rtw_adapter *padapter); void hw_var_set_mlme_disconnect(struct rtw_adapter *padapter); void hw_var_set_opmode(struct rtw_adapter *padapter, u8 mode);