staging: rtl8723au: Remove never set struct pwrctrl_priv.bHWPowerdown
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 31 Jul 2014 08:36:43 +0000 (10:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2014 21:43:37 +0000 (14:43 -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/include/rtw_pwrctrl.h

index 681810ea657bf5b76df2b4a8986e6453bc3ed25e..b49bf33184dedf765d8983a600d6e80c5ba3c028 100644 (file)
@@ -517,20 +517,15 @@ enum rt_rf_power_state RfOnOffDetect23a(struct rtw_adapter *pAdapter)
        u8 val8;
        enum rt_rf_power_state rfpowerstate = rf_off;
 
-       if (pAdapter->pwrctrlpriv.bHWPowerdown) {
-               val8 = rtl8723au_read8(pAdapter, REG_HSISR);
-               DBG_8723A("pwrdown, 0x5c(BIT7) =%02x\n", val8);
-               rfpowerstate = (val8 & BIT(7)) ? rf_off : rf_on;
-       } else { /*  rf on/off */
-               rtl8723au_write8(pAdapter, REG_MAC_PINMUX_CFG,
-                                rtl8723au_read8(pAdapter, REG_MAC_PINMUX_CFG) &
-                                ~BIT(3));
-               val8 = rtl8723au_read8(pAdapter, REG_GPIO_IO_SEL);
-               DBG_8723A("GPIO_IN =%02x\n", val8);
-               rfpowerstate = (val8 & BIT(3)) ? rf_on : rf_off;
-       }
+       rtl8723au_write8(pAdapter, REG_MAC_PINMUX_CFG,
+                        rtl8723au_read8(pAdapter,
+                                        REG_MAC_PINMUX_CFG) & ~BIT(3));
+       val8 = rtl8723au_read8(pAdapter, REG_GPIO_IO_SEL);
+       DBG_8723A("GPIO_IN =%02x\n", val8);
+       rfpowerstate = (val8 & BIT(3)) ? rf_on : rf_off;
+
        return rfpowerstate;
-}      /*  HalDetectPwrDownMode */
+}
 
 void _ps_open_RF23a(struct rtw_adapter *padapter);
 
index be465c2cf2fe4d481ad644780c6c2b323f371ff9..599fed9b365dcc3cd3b4eb57bde62e8058094fe3 100644 (file)
@@ -198,7 +198,6 @@ struct pwrctrl_priv {
        enum rt_rf_power_state  rf_pwrstate;/* cur power state */
        enum rt_rf_power_state  change_rfpwrstate;
 
-       u8      bHWPowerdown;/* if support hw power down */
        u8      bkeepfwalive;
        unsigned long PS_BBRegBackup[PSBBREG_TOTALCNT];
 };