]> git.baikalelectronics.ru Git - kernel.git/commit
atl1: Protect atl1_suspend with CONFIG_PM_SLEEP
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 16 Apr 2013 21:35:00 +0000 (18:35 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Apr 2013 21:46:24 +0000 (17:46 -0400)
commit40fe17fb4fc4030f7b709737a81589c1fac50730
treea1435a908ffdc991e3c4f76b7af59f4f9be1120c
parent474231bb7d4b48ecb5378bddd881cc245fc35b01
atl1: Protect atl1_suspend with CONFIG_PM_SLEEP

commit 58fb0b9e2e3 (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 <fengguang.wu@intel.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atlx/atl1.c