]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: merge common ->config_pci_powersave() checks
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 5 Aug 2011 11:10:33 +0000 (13:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Aug 2011 18:45:57 +0000 (14:45 -0400)
commit5fd750490a79b2b4a591502d8d25e53fe98b92e2
treeb5b6b29b4c3db5db99f513a683ec8bae8a43bbf3
parentbe7cddc6a422769f2de836cbe4b1e7fdc159d928
ath9k: merge common ->config_pci_powersave() checks

Move common checks into wrapper function. Since ASPM can be only enabled
on PCIe devices ->is_pciexpress check is unneeded.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_hw.c
drivers/net/wireless/ath/ath9k/ar9003_hw.c
drivers/net/wireless/ath/ath9k/hw-ops.h