From: Tobias Doerffel Date: Sat, 29 May 2010 22:02:18 +0000 (+0200) Subject: ath5k: depend on CONFIG_PM_SLEEP for suspend/resume functions X-Git-Tag: v2.6.35-rc3~15^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e307139d7ad532761cdbf2a665f3c53c509a2d0e;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed