staging: rtl8188eu: Remove function _rtw_read_port_cancel()
authornavin patidar <navin.patidar@gmail.com>
Wed, 11 Jun 2014 17:21:28 +0000 (22:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:34:01 +0000 (15:34 -0700)
_rtw_read_port_cancel() is a wrapper function, being used to call
usb_read_port_cancel().
Call usb_read_port_cancel() directly and drop _rtw_read_port_cancel().

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_io.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/hal/usb_ops_linux.c
drivers/staging/rtl8188eu/include/rtw_io.h

index 4a3cd3dc8d15b129e840067bfaa770b91b954f27..627a8521b658d80fa93d6385b067223d11972b6b 100644 (file)
@@ -126,18 +126,6 @@ int _rtw_write32(struct adapter *adapter, u32 addr, u32 val)
        return RTW_STATUS_CODE(ret);
 }
 
-void _rtw_read_port_cancel(struct adapter *adapter)
-{
-       void (*_read_port_cancel)(struct adapter *pintfhdl);
-       struct io_priv *pio_priv = &adapter->iopriv;
-       struct intf_hdl *pintfhdl = &(pio_priv->intf);
-
-       _read_port_cancel = pintfhdl->io_ops._read_port_cancel;
-
-       if (_read_port_cancel)
-               _read_port_cancel(adapter);
-}
-
 u32 _rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
 {
        u32 (*_write_port)(struct adapter *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
index 0118b9dc9a869f96399ed29d9d86c2e9e1ea5778..88dbc955dc4b94c52a3f0fc17d6a42cb20672a5a 100644 (file)
@@ -1071,7 +1071,7 @@ static unsigned int rtl8188eu_inirp_deinit(struct adapter *Adapter)
 {
        RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("\n ===> usb_rx_deinit\n"));
 
-       rtw_read_port_cancel(Adapter);
+       usb_read_port_cancel(Adapter);
 
        RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("\n <=== usb_rx_deinit\n"));
 
index c41085ca9580d0b7a760fd157dcc79624b4a18eb..95f6c10f4fa654f670e86ad7d6000a5e9c1147a7 100644 (file)
@@ -673,6 +673,5 @@ void rtl8188eu_set_intf_ops(struct _io_ops  *pops)
        pops->_write16 = &usb_write16;
        pops->_write32 = &usb_write32;
        pops->_write_port = &usb_write_port;
-       pops->_read_port_cancel = &usb_read_port_cancel;
        pops->_write_port_cancel = &usb_write_port_cancel;
 }
index e68b40cca5b860abf2ea0b5a9551704efcf66985..0ca46e80c159feb83eb66b185efa32cf61636cb6 100644 (file)
@@ -52,7 +52,6 @@ struct _io_ops {
        int (*_write32)(struct adapter *pintfhdl, u32 addr, u32 val);
        u32 (*_write_port)(struct adapter *pintfhdl, u32 addr, u32 cnt,
                           u8 *pmem);
-       void (*_read_port_cancel)(struct adapter *pintfhdl);
        void (*_write_port_cancel)(struct adapter *pintfhdl);
 };
 
@@ -89,7 +88,7 @@ u8 _rtw_read8(struct adapter *adapter, u32 addr);
 u16 _rtw_read16(struct adapter *adapter, u32 addr);
 u32 _rtw_read32(struct adapter *adapter, u32 addr);
 u32 usb_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-void _rtw_read_port_cancel(struct adapter *adapter);
+void usb_read_port_cancel(struct adapter *adapter);
 
 int _rtw_write8(struct adapter *adapter, u32 addr, u8 val);
 int _rtw_write16(struct adapter *adapter, u32 addr, u16 val);
@@ -102,7 +101,6 @@ void _rtw_write_port_cancel(struct adapter *adapter);
 #define rtw_read8(adapter, addr) _rtw_read8((adapter), (addr))
 #define rtw_read16(adapter, addr) _rtw_read16((adapter), (addr))
 #define rtw_read32(adapter, addr) _rtw_read32((adapter), (addr))
-#define rtw_read_port_cancel(adapter) _rtw_read_port_cancel((adapter))
 
 #define  rtw_write8(adapter, addr, val)                                        \
        _rtw_write8((adapter), (addr), (val))