staging: rtl8723au: Remove sw led hal ops
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:23 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:27 +0000 (11:34 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/hal_intf.c
drivers/staging/rtl8723au/hal/usb_halinit.c
drivers/staging/rtl8723au/include/drv_types.h
drivers/staging/rtl8723au/include/hal_intf.h
drivers/staging/rtl8723au/os_dep/os_intfs.c

index 1d47539c220ea527cb12f96c3462312423a3b94e..cc1b1eac5b89a98befe07391787f8c8cf1ff581e 100644 (file)
 #include <usb_hal.h>
 #include <rtl8723a_hal.h>
 
-void   rtw_hal_sw_led_init23a(struct rtw_adapter *padapter)
-{
-       if (padapter->HalFunc.InitSwLeds)
-               padapter->HalFunc.InitSwLeds(padapter);
-}
-
-void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter)
-{
-       if (padapter->HalFunc.DeInitSwLeds)
-               padapter->HalFunc.DeInitSwLeds(padapter);
-}
-
 void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level)
 {
        struct rtw_adapter *padapter;
index be98560f1e4f7888da31e9fc5844c5aad45c3f2a..5ecd7f339f82053fde95da52b3db04e17eaf6c53 100644 (file)
@@ -1694,16 +1694,11 @@ int rtw_hal_deinit23a(struct rtw_adapter *padapter)
 
 int rtl8723au_set_hal_ops(struct rtw_adapter *padapter)
 {
-       struct hal_ops  *pHalFunc = &padapter->HalFunc;
-
        padapter->HalData = kzalloc(sizeof(struct hal_data_8723a), GFP_KERNEL);
        if (!padapter->HalData) {
                DBG_8723A("cannot alloc memory for HAL DATA\n");
                return -ENOMEM;
        }
 
-       pHalFunc->InitSwLeds = NULL;
-       pHalFunc->DeInitSwLeds = NULL;
-
        return 0;
 }
index e31e6ea56f54bf44afbc9f6fc8969777e21c97ae..3f22523011397d5ca2d3921de5456b586f78e86b 100644 (file)
@@ -239,7 +239,6 @@ struct rtw_adapter {
        u32     setband;
 
        void *HalData;
-       struct hal_ops  HalFunc;
 
        s32     bDriverStopped;
        s32     bSurpriseRemoved;
index b2dcd1da9713d990080ffdc804d2e6dff3bd84b9..04223b5c047deea36933b345574248a901d8fac9 100644 (file)
@@ -60,11 +60,6 @@ enum hal_odm_variable {
        HAL_ODM_WIFI_DISPLAY_STATE,
 };
 
-struct hal_ops {
-       void (*InitSwLeds)(struct rtw_adapter *padapter);
-       void (*DeInitSwLeds)(struct rtw_adapter *padapter);
-};
-
 enum rt_eeprom_type {
        EEPROM_93C46,
        EEPROM_93C56,
@@ -108,9 +103,6 @@ void rtw_hal_def_value_init23a(struct rtw_adapter *padapter);
 int pm_netdev_open23a(struct net_device *pnetdev, u8 bnormal);
 int rtw_resume_process23a(struct rtw_adapter *padapter);
 
-void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter);
-void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter);
-
 int rtw_hal_init23a(struct rtw_adapter *padapter);
 int rtw_hal_deinit23a(struct rtw_adapter *padapter);
 void rtw_hal_stop(struct rtw_adapter *padapter);
index 3a455d111a33cbeb0385aa1d933bedb7fee56970..1a253a0a372ed29cd483c6d781893b11c0d3cb6e 100644 (file)
@@ -523,7 +523,6 @@ u8 rtw_init_drv_sw23a(struct rtw_adapter *padapter)
        ret8 = rtw_init_default_value(padapter);
 
        rtl8723a_init_dm_priv(padapter);
-       rtw_hal_sw_led_init23a(padapter);
 
        rtw_sreset_init(padapter);
 
@@ -549,8 +548,6 @@ void rtw_cancel_all_timer23a(struct rtw_adapter *padapter)
        RT_TRACE(_module_os_intfs_c_, _drv_info_,
                 ("rtw_cancel_all_timer23a:cancel dynamic_chk_timer!\n"));
 
-       /*  cancel sw led timer */
-       rtw_hal_sw_led_deinit23a(padapter);
        RT_TRACE(_module_os_intfs_c_, _drv_info_,
                 ("rtw_cancel_all_timer23a:cancel DeInitSwLeds!\n"));