Merge branch 'slab/urgent' into slab/next
[pandora-kernel.git] / drivers / net / wireless / ath / ath9k / ar9002_hw.c
index 9ff7c30..44d9d8d 100644 (file)
@@ -309,11 +309,7 @@ static void ar9002_hw_configpcipowersave(struct ath_hw *ah,
        u8 i;
        u32 val;
 
-       if (ah->is_pciexpress != true)
-               return;
-
-       /* Do not touch SerDes registers */
-       if (ah->config.pcie_powersave_enable == 2)
+       if (ah->is_pciexpress != true || ah->aspm_enabled != true)
                return;
 
        /* Nothing to do on restore for 11N */