staging: rtl8188eu: Remove functions initialize rtw_[read,write] wrapper
authornavin patidar <navin.patidar@gmail.com>
Wed, 11 Jun 2014 17:21:37 +0000 (22:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:34:02 +0000 (15:34 -0700)
we have removed all rtw_[read,write]() function calls,
so no need to initialize structures used to build rtw_[read,write]
abstraction.

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_ops_linux.c
drivers/staging/rtl8188eu/include/rtw_io.h
drivers/staging/rtl8188eu/include/usb_ops.h
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 25b0a875d4a09bbdc7ed7456d729dc334df7dde3..dd568967135c047bf147de0a3800ddec1026cb26 100644 (file)
@@ -51,19 +51,3 @@ jackson@realtek.com.tw
 #define rtw_cpu_to_le16(val)           cpu_to_le16(val)
 #define rtw_cpu_to_le32(val)           cpu_to_le32(val)
 
-int rtw_init_io_priv(struct adapter *padapter, void (*set_intf_ops)(struct _io_ops *pops))
-{
-       struct io_priv  *piopriv = &padapter->iopriv;
-       struct intf_hdl *pintf = &piopriv->intf;
-
-       if (set_intf_ops == NULL)
-               return _FAIL;
-
-       piopriv->padapter = padapter;
-       pintf->padapter = padapter;
-       pintf->pintf_dev = adapter_to_dvobj(padapter);
-
-       set_intf_ops(&pintf->io_ops);
-
-       return _SUCCESS;
-}
index d0c82dc6da917668caf46e40586e15384f974c53..1002ff07f321894f156a760e8225392303bbb1e4 100644 (file)
@@ -663,7 +663,3 @@ void rtl8188eu_xmit_tasklet(void *priv)
        }
 }
 
-void rtl8188eu_set_intf_ops(struct _io_ops     *pops)
-{
-       _rtw_memset((u8 *)pops, 0, sizeof(struct _io_ops));
-}
index ef865dad0f4d34e41d81540ffc897c899e980d75..86431b8ae861fe903b99c7c6eb579d69eb164306 100644 (file)
@@ -89,8 +89,4 @@ int usb_writeN(struct adapter *adapter, u32 addr, u32 length, u8 *pdata);
 u32 usb_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
 void usb_write_port_cancel(struct adapter *adapter);
 
-
-int rtw_init_io_priv(struct adapter *padapter,
-                    void (*set_intf_ops)(struct _io_ops *pops));
-
 #endif /* _RTL8711_IO_H_ */
index a290e0ff30609cef3365f80fc4d8a71695b58e83..ff730f49bc4b37bfa4418976dd1bdfae76d42cbd 100644 (file)
@@ -63,8 +63,6 @@ enum{
 #include <usb_ops_linux.h>
 
 void rtl8188eu_set_hw_type(struct adapter *padapter);
-void rtl8188eu_set_intf_ops(struct _io_ops *pops);
-#define usb_set_intf_ops rtl8188eu_set_intf_ops
 
 /*
  * Increase and check if the continual_urb_error of this @param dvobjprivei
index 491d8e5a6ec085b6f5def9425c298d4889646b39..c4a4880e7b8a83bfe21626989313b19bf0ed986c 100644 (file)
@@ -396,9 +396,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
        padapter->intf_start = &usb_intf_start;
        padapter->intf_stop = &usb_intf_stop;
 
-       /* step init_io_priv */
-       rtw_init_io_priv(padapter, usb_set_intf_ops);
-
        /* step read_chip_version */
        rtw_hal_read_chip_version(padapter);