From: Alexandre Belloni Date: Thu, 10 Sep 2015 08:19:52 +0000 (+0200) Subject: spi: atmel: remove warning when !CONFIG_PM_SLEEP X-Git-Tag: omap-for-v4.3/fixes-rc5~96^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d630526d0aa6acc0868dae892b1febda72029a3e;p=pandora-kernel.git spi: atmel: remove warning when !CONFIG_PM_SLEEP When CONFIG_PM is defined but not CONFIG_PM_SLEEP (this happens when CONFIG_SUSPEND is not defined), there is the following warning: drivers/spi/spi-atmel.c:1723:12: warning: ‘atmel_spi_suspend’ defined but not used [-Wunused-function] drivers/spi/spi-atmel.c:1741:12: warning: ‘atmel_spi_resume’ defined but not used [-Wunused-function] Enclose both atmel_spi_suspend and atmel_spi_resume in #ifdef CONFIG_PM_SLEEP/#endif to solve that. Signed-off-by: Alexandre Belloni Signed-off-by: Mark Brown --- Reading git-diff-tree failed