]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: fix compilation warning when !CONFIG_PM_SLEEP
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 16 Jan 2014 12:50:55 +0000 (14:50 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 16 Jan 2014 14:07:48 +0000 (14:07 +0000)
commitdd15dca1e9dbe678c3d06da2e1890e54c1925eb1
treeecef6fc19946dbc98dc5be9dc0d906be6b8027c6
parent1386d2af13b0b2ba423da1adf79ceabb7ea834e9
spi/pxa2xx: fix compilation warning when !CONFIG_PM_SLEEP

CONFIG_PM will be set if either or both CONFIG_PM_SLEEP and
CONFIG_PM_RUNTIME is set. Compiling the driver with !CONFIG_PM_SLEEP causes
following compilation warning:

drivers/spi/spi-pxa2xx.c:1270:12: warning: ‘pxa2xx_spi_suspend’ defined but not used [-Wunused-function]

Fix this by using CONFIG_PM_SLEEP instead.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-pxa2xx.c