]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: depend on CONFIG_PM_SLEEP for suspend/resume functions
authorTobias Doerffel <tobias.doerffel@gmail.com>
Sat, 29 May 2010 22:02:18 +0000 (00:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Jun 2010 19:50:52 +0000 (15:50 -0400)
commitcac158b78855562ea2bc710a2d2a4a8fd25fb89d
tree72165d2916700793d555666473ed01b79b6d9959
parentf74d97c046af5d230a878fdea31f69ee7a8fb47d
ath5k: depend on CONFIG_PM_SLEEP for suspend/resume functions

When building a kernel with CONFIG_PM=y but neither suspend nor
hibernate support, the compiler complains about the static functions
ath5k_pci_suspend() and ath5k_pci_resume() not being used:

drivers/net/wireless/ath/ath5k/base.c:713:12: warning: ‘ath5k_pci_suspend’ defined but not used
drivers/net/wireless/ath/ath5k/base.c:722:12: warning: ‘ath5k_pci_resume’ defined but not used

Depending on CONFIG_PM_SLEEP rather than CONFIG_PM fixes the issue.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c