rtlwifi: Remove unused routine _usb_readN_sync
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 27 Sep 2011 05:48:20 +0000 (00:48 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Sep 2011 19:57:02 +0000 (15:57 -0400)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/usb.c
drivers/net/wireless/rtlwifi/wifi.h

index 4bf3cf457ef0dedd02d897be03b47990f9619853..2e544a0c7c05844494c18247ad11dd12d5af7943 100644 (file)
@@ -211,15 +211,6 @@ static int _usb_nbytes_read_write(struct usb_device *udev, bool read, u32 addr,
        return status;
 }
 
-static int _usb_readN_sync(struct rtl_priv *rtlpriv, u32 addr, u16 len,
-                          u8 *pdata)
-{
-       struct device *dev = rtlpriv->io.dev;
-
-       return _usb_nbytes_read_write(to_usb_device(dev), true, addr, len,
-                                      pdata);
-}
-
 static int _usb_writeN_async(struct rtl_priv *rtlpriv, u32 addr, u16 len,
                             u8 *pdata)
 {
@@ -243,7 +234,6 @@ static void _rtl_usb_io_handler_init(struct device *dev,
        rtlpriv->io.read8_sync          = _usb_read8_sync;
        rtlpriv->io.read16_sync         = _usb_read16_sync;
        rtlpriv->io.read32_sync         = _usb_read32_sync;
-       rtlpriv->io.readN_sync          = _usb_readN_sync;
 }
 
 static void _rtl_usb_io_handler_release(struct ieee80211_hw *hw)
index 615f6b4463e6977b50e345f43778b4737c8a0bfe..31b3be98e50ccd8bf40b417ba081fd4cbea5b56d 100644 (file)
@@ -950,8 +950,6 @@ struct rtl_io {
        u8(*read8_sync) (struct rtl_priv *rtlpriv, u32 addr);
        u16(*read16_sync) (struct rtl_priv *rtlpriv, u32 addr);
        u32(*read32_sync) (struct rtl_priv *rtlpriv, u32 addr);
-       int (*readN_sync) (struct rtl_priv *rtlpriv, u32 addr, u16 len,
-                           u8 *pdata);
 
 };