ath6kl: remove useless plat_setup_power() calls
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 30 Mar 2011 00:56:22 +0000 (17:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Apr 2011 05:58:14 +0000 (22:58 -0700)
These map to do nothing.

Cc: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ath6kl/os/linux/ar6000_drv.c
drivers/staging/ath6kl/os/linux/ar6000_pm.c
drivers/staging/ath6kl/os/linux/include/wlan_config.h

index 5f73182911edfa03037e90264ec360dcee64442c..056acae7b21191c6a1f88b4d8076b47ac3058ee9 100644 (file)
@@ -2017,9 +2017,6 @@ ar6000_destroy(struct net_device *dev, unsigned int unregister)
     if (ar->arWlanPowerState != WLAN_POWER_STATE_CUT_PWR) {
         /* only stop endpoint if we are not stop it in suspend_ev */
         ar6000_stop_endpoint(dev, false, true);
-    } else {
-        /* clear up the platform power state before rmmod */
-        plat_setup_power(1,0);
     }
 
     ar->arWlanState = WLAN_DISABLED;
index be401aa6dfcbd45e008ad9df3056dab0fbac89a9..eeb38079d3cb92e6e6d3ef0a52528600f6ae40f4 100644 (file)
@@ -304,13 +304,11 @@ int ar6000_power_change_ev(void *context, u32 config)
 
 static int ar6000_pm_probe(struct platform_device *pdev)
 {
-    plat_setup_power(1,1);
     return 0;
 }
 
 static int ar6000_pm_remove(struct platform_device *pdev)
 {
-    plat_setup_power(0,1);
     return 0;
 }
 
@@ -352,8 +350,6 @@ ar6000_setup_cut_power_state(struct ar6_softc *ar,  AR6000_WLAN_STATE state)
                 break;
             }
 
-            plat_setup_power(1,0);
-
             /* Change the state to ON */
             ar->arWlanPowerState = WLAN_POWER_STATE_ON;
 
@@ -385,8 +381,6 @@ ar6000_setup_cut_power_state(struct ar6_softc *ar,  AR6000_WLAN_STATE state)
                                 &config,
                                 sizeof(HIF_DEVICE_POWER_CHANGE_TYPE));
 
-            plat_setup_power(0,0);
-
             ar->arWlanPowerState = WLAN_POWER_STATE_CUT_PWR;
         }
     } while (0);
index 98951bbe05a59009783a759e8695e5870cc18cee..c1fe0c6e4fa100ccd15d3409a14f2e84d896c791 100644 (file)
  */
 #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_ */