staging: rtl8723au: Call usb_read_interrupt() directly instead of via HAL layer
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:05:07 +0000 (10:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:35 +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/usb_halinit.c
drivers/staging/rtl8723au/hal/usb_ops_linux.c
drivers/staging/rtl8723au/include/rtw_io.h
drivers/staging/rtl8723au/include/usb_ops_linux.h

index fc1d407f2648ac613bcf2dff5fa4df152315d40f..46dcc567aa2d573f1da63489f338e7fa52fc4617 100644 (file)
@@ -1218,9 +1218,7 @@ int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
        u8 i;
        struct recv_buf *precvbuf;
        int status;
-       struct _io_ops *io_ops = &Adapter->io_ops;
        struct recv_priv *precvpriv = &Adapter->recvpriv;
-       int (*_read_interrupt)(struct rtw_adapter *padapter, u32 addr);
        struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
 
        status = _SUCCESS;
@@ -1239,8 +1237,7 @@ int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
                }
                precvbuf++;
        }
-       _read_interrupt = io_ops->_read_interrupt;
-       if (_read_interrupt(Adapter, RECV_INT_IN_ADDR) == _FAIL) {
+       if (rtl8723a_usb_read_interrupt(Adapter, RECV_INT_IN_ADDR) == _FAIL) {
                RT_TRACE(_module_hci_hal_init_c_, _drv_err_,
                         ("usb_rx_init: usb_read_interrupt error\n"));
                status = _FAIL;
index 3b8a1996b3f1b6d40814d2acc0c8bf85c315bb47..bb85131c30e08ac60f8e399784880b93504e4a98 100644 (file)
@@ -447,7 +447,7 @@ urb_submit:
        }
 }
 
-static int usb_read_interrupt(struct rtw_adapter *adapter, u32 addr)
+int rtl8723a_usb_read_interrupt(struct rtw_adapter *adapter, u32 addr)
 {
        int err;
        unsigned int pipe;
@@ -847,8 +847,6 @@ void rtl8723au_set_intf_ops(struct rtw_adapter *padapter)
        pops->_write16 = &usb_write16;
        pops->_write32 = &usb_write32;
        pops->_writeN = &usb_writeN;
-
-       pops->_read_interrupt = &usb_read_interrupt;
 }
 
 void rtl8723au_set_hw_type(struct rtw_adapter *padapter)
index 50a1783859a80282f972f462af47bf45c7cd1d9d..82939f5225dbaf3464389f3588b1166657ce9bb3 100644 (file)
@@ -109,8 +109,6 @@ struct _io_ops
        int (*_write32)(struct rtw_adapter *adapter, u32 addr, u32 val);
        int (*_writeN)(struct rtw_adapter *adapter, u32 addr, u32 length,
                       u8 *pdata);
-
-       int (*_read_interrupt)(struct rtw_adapter *adapter, u32 addr);
 };
 
 struct io_req {
index f851becf863fc4163d670f06e2d7e8d73b0b1716..acd98f7fc63cfd774f2441a55dc7fab8444d8ba8 100644 (file)
@@ -27,5 +27,6 @@ void rtl8723a_usb_read_port_cancel(struct rtw_adapter *padapter);
 int rtl8723a_usb_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
                            struct xmit_buf *pxmitbuf);
 void rtl8723a_usb_write_port_cancel(struct rtw_adapter *padapter);
+int rtl8723a_usb_read_interrupt(struct rtw_adapter *adapter, u32 addr);
 
 #endif