staging: rtl8723au: Remove HAL wrappers about USB init/deinit
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:05 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:24 +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/hal_intf.h
drivers/staging/rtl8723au/include/usb_ops.h
drivers/staging/rtl8723au/os_dep/usb_intf.c

index 81faaa579e376b49ecd5334cba73f64c68e54b6b..b462fc53aa92b940ba1aa95ba552139eec3db7ae 100644 (file)
@@ -129,26 +129,6 @@ void rtw_hal_disable_interrupt23a(struct rtw_adapter *padapter)
 
 }
 
-u32    rtw_hal_inirp_init23a(struct rtw_adapter *padapter)
-{
-       u32 rst = _FAIL;
-       if (padapter->HalFunc.inirp_init)
-               rst = padapter->HalFunc.inirp_init(padapter);
-       else
-               DBG_8723A(" %s HalFunc.inirp_init is NULL!!!\n", __FUNCTION__);
-       return rst;
-}
-
-u32    rtw_hal_inirp_deinit23a(struct rtw_adapter *padapter)
-{
-
-       if (padapter->HalFunc.inirp_deinit)
-               return padapter->HalFunc.inirp_deinit(padapter);
-
-       return _FAIL;
-
-}
-
 s32    rtw_hal_xmit23aframe_enqueue(struct rtw_adapter *padapter, struct xmit_frame *pxmitframe)
 {
        if (padapter->HalFunc.hal_xmitframe_enqueue)
index 96be426d9f19d20e7f706b03c1b950dbfaa181e1..f202ff39537a59cadad12ab6d3009fa7ff15fb62 100644 (file)
@@ -1222,11 +1222,11 @@ static u32 rtl8723au_hal_deinit(struct rtw_adapter *padapter)
        return _SUCCESS;
 }
 
-static unsigned int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
+int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
 {
        u8 i;
        struct recv_buf *precvbuf;
-       uint    status;
+       int status;
        struct _io_ops *io_ops = &Adapter->io_ops;
        struct recv_priv *precvpriv = &Adapter->recvpriv;
        u32 (*_read_port)(struct rtw_adapter *padapter, u32 addr, u32 cnt,
@@ -1270,7 +1270,7 @@ exit:
        return status;
 }
 
-static unsigned int rtl8723au_inirp_deinit(struct rtw_adapter *Adapter)
+int rtl8723au_inirp_deinit(struct rtw_adapter *Adapter)
 {
        struct hal_data_8723a   *pHalData = GET_HAL_DATA(Adapter);
 
@@ -1738,9 +1738,6 @@ int rtl8723au_set_hal_ops(struct rtw_adapter *padapter)
        pHalFunc->hal_init = &rtl8723au_hal_init;
        pHalFunc->hal_deinit = &rtl8723au_hal_deinit;
 
-       pHalFunc->inirp_init = &rtl8723au_inirp_init;
-       pHalFunc->inirp_deinit = &rtl8723au_inirp_deinit;
-
        pHalFunc->init_xmit_priv = &rtl8723au_init_xmit_priv;
 
        pHalFunc->init_recv_priv = &rtl8723au_init_recv_priv;
index b25a8a07d2eeca964f578cc5ef5b29e0174f60d1..f56d7578b74ef0662f8b084e568745769049441c 100644 (file)
@@ -67,9 +67,6 @@ struct hal_ops {
 
        void (*free_hal_data)(struct rtw_adapter *padapter);
 
-       u32 (*inirp_init)(struct rtw_adapter *padapter);
-       u32 (*inirp_deinit)(struct rtw_adapter *padapter);
-
        s32 (*init_xmit_priv)(struct rtw_adapter *padapter);
 
        s32 (*init_recv_priv)(struct rtw_adapter *padapter);
@@ -205,9 +202,6 @@ void rtw_hal_get_odm_var23a(struct rtw_adapter *padapter,
 void rtw_hal_enable_interrupt23a(struct rtw_adapter *padapter);
 void rtw_hal_disable_interrupt23a(struct rtw_adapter *padapter);
 
-u32 rtw_hal_inirp_init23a(struct rtw_adapter *padapter);
-u32 rtw_hal_inirp_deinit23a(struct rtw_adapter *padapter);
-
 s32 rtw_hal_xmit23aframe_enqueue(struct rtw_adapter *padapter,
                                 struct xmit_frame *pxmitframe);
 s32 rtw_hal_xmit23a(struct rtw_adapter *padapter,
index 1013406c9c77dee1449110082242acffd4389fb5..3afdbda179c0f950e2f3828aefa1e8d759b58d06 100644 (file)
@@ -92,5 +92,7 @@ static inline u8 rtw_usb_bulk_size_boundary(struct rtw_adapter *padapter,
        return rst;
 }
 
+int rtl8723au_inirp_init(struct rtw_adapter *Adapter);
+int rtl8723au_inirp_deinit(struct rtw_adapter *Adapter);
 
 #endif /* __USB_OPS_H_ */
index 26f5523be719806a73295963f916a63cb60df466..d80c35544d33c9ecb30c24049941a0ef16dfdff6 100644 (file)
@@ -289,7 +289,7 @@ static void decide_chip_type_by_usb_device_id(struct rtw_adapter *padapter,
 static void usb_intf_start(struct rtw_adapter *padapter)
 {
        RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+usb_intf_start\n"));
-       rtw_hal_inirp_init23a(padapter);
+       rtl8723au_inirp_init(padapter);
        RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("-usb_intf_start\n"));
 }
 
@@ -307,7 +307,7 @@ static void usb_intf_stop(struct rtw_adapter *padapter)
        }
 
        /* cancel in irp */
-       rtw_hal_inirp_deinit23a(padapter);
+       rtl8723au_inirp_deinit(padapter);
 
        /* cancel out irp */
        rtw_write_port_cancel(padapter);