staging: rtl8192u: Deleted 'rtl8192_set_mode' function in r8192U_core.c
authorAna Rey <anarey@gmail.com>
Thu, 13 Mar 2014 16:54:55 +0000 (17:54 +0100)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Mon, 17 Mar 2014 00:46:55 +0000 (17:46 -0700)
This patch delete the 'rtl8192_set_mode' function that is not used in
anywhere in the driver.

Fix the following sparse warning in r8192U_core.c
drivers/staging/rtl8192u/r8192U_core.c:692:6: warning: symbol 'rtl8192_set_mode' was not declared. Should it be static?

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/rtl8192u/r8192U_core.c

index 47489bdbc20743c311bd7b5826e2e94dcef15f44..9432b68102f9dbfe3db3948ccf45f0b0cf133353 100644 (file)
@@ -689,24 +689,6 @@ void dump_eprom(struct net_device *dev)
                RT_TRACE(COMP_EPROM, "EEPROM addr %x : %x", i, eprom_read(dev, i));
 }
 
-
-/****************************************************************************
-      ------------------------------HW STUFF---------------------------
-*****************************************************************************/
-
-
-void rtl8192_set_mode(struct net_device *dev, int mode)
-{
-       u8 ecmd;
-       read_nic_byte(dev, EPROM_CMD, &ecmd);
-       ecmd = ecmd & ~EPROM_CMD_OPERATING_MODE_MASK;
-       ecmd = ecmd | (mode<<EPROM_CMD_OPERATING_MODE_SHIFT);
-       ecmd = ecmd & ~EPROM_CS_BIT;
-       ecmd = ecmd & ~EPROM_CK_BIT;
-       write_nic_byte(dev, EPROM_CMD, ecmd);
-}
-
-
 void rtl8192_update_msr(struct net_device *dev)
 {
        struct r8192_priv *priv = ieee80211_priv(dev);