From: Fabio Estevam Date: Tue, 16 Apr 2013 21:35:00 +0000 (-0300) Subject: atl1: Protect atl1_suspend with CONFIG_PM_SLEEP X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98d2f0e68c4de36c56fbe3baeae30c001f012243;p=pandora-kernel.git atl1: Protect atl1_suspend with CONFIG_PM_SLEEP commit 7b7a2bbb690 (atl1: Remove unneeded PM_OPS definitions) removed the definition of atl1_suspend for the !CONFIG_PM_SLEEP case. So only call atl1_suspend() when CONFIG_PM_SLEEP is defined and fix the following build error from randconfig: drivers/net/ethernet/atheros/atlx/atl1.c: In function 'atl1_shutdown': drivers/net/ethernet/atheros/atlx/atl1.c:2888:2: error: implicit declaration of function 'atl1_suspend' [-Werror=implicit-function-declaration] Reported-by: kbuild test robot Signed-off-by: Fabio Estevam Signed-off-by: David S. Miller --- Reading git-diff-tree failed