Commit 0c804c5a authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

ath6kl: remove useless plat_setup_power() calls

These map to do nothing.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 711908df
...@@ -2017,9 +2017,6 @@ ar6000_destroy(struct net_device *dev, unsigned int unregister) ...@@ -2017,9 +2017,6 @@ ar6000_destroy(struct net_device *dev, unsigned int unregister)
if (ar->arWlanPowerState != WLAN_POWER_STATE_CUT_PWR) { if (ar->arWlanPowerState != WLAN_POWER_STATE_CUT_PWR) {
/* only stop endpoint if we are not stop it in suspend_ev */ /* only stop endpoint if we are not stop it in suspend_ev */
ar6000_stop_endpoint(dev, false, true); ar6000_stop_endpoint(dev, false, true);
} else {
/* clear up the platform power state before rmmod */
plat_setup_power(1,0);
} }
ar->arWlanState = WLAN_DISABLED; ar->arWlanState = WLAN_DISABLED;
......
...@@ -304,13 +304,11 @@ int ar6000_power_change_ev(void *context, u32 config) ...@@ -304,13 +304,11 @@ int ar6000_power_change_ev(void *context, u32 config)
static int ar6000_pm_probe(struct platform_device *pdev) static int ar6000_pm_probe(struct platform_device *pdev)
{ {
plat_setup_power(1,1);
return 0; return 0;
} }
static int ar6000_pm_remove(struct platform_device *pdev) static int ar6000_pm_remove(struct platform_device *pdev)
{ {
plat_setup_power(0,1);
return 0; return 0;
} }
...@@ -352,8 +350,6 @@ ar6000_setup_cut_power_state(struct ar6_softc *ar, AR6000_WLAN_STATE state) ...@@ -352,8 +350,6 @@ ar6000_setup_cut_power_state(struct ar6_softc *ar, AR6000_WLAN_STATE state)
break; break;
} }
plat_setup_power(1,0);
/* Change the state to ON */ /* Change the state to ON */
ar->arWlanPowerState = WLAN_POWER_STATE_ON; ar->arWlanPowerState = WLAN_POWER_STATE_ON;
...@@ -385,8 +381,6 @@ ar6000_setup_cut_power_state(struct ar6_softc *ar, AR6000_WLAN_STATE state) ...@@ -385,8 +381,6 @@ ar6000_setup_cut_power_state(struct ar6_softc *ar, AR6000_WLAN_STATE state)
&config, &config,
sizeof(HIF_DEVICE_POWER_CHANGE_TYPE)); sizeof(HIF_DEVICE_POWER_CHANGE_TYPE));
plat_setup_power(0,0);
ar->arWlanPowerState = WLAN_POWER_STATE_CUT_PWR; ar->arWlanPowerState = WLAN_POWER_STATE_CUT_PWR;
} }
} while (0); } while (0);
......
...@@ -105,10 +105,4 @@ ...@@ -105,10 +105,4 @@
*/ */
#define WLAN_CONFIG_DISABLE_TX_BURSTING 0 #define WLAN_CONFIG_DISABLE_TX_BURSTING 0
/*
* Platform specific function to power ON/OFF AR6000
* and enable/disable SDIO card detection
*/
#define plat_setup_power(on, detect)
#endif /* _HOST_WLAN_CONFIG_H_ */ #endif /* _HOST_WLAN_CONFIG_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment