OSDN Git Service

spi: fsl-lpspi: Fix build warning when !CONFIG_PM
authorAxel Lin <axel.lin@ingics.com>
Sun, 7 Apr 2019 14:58:16 +0000 (22:58 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 8 Apr 2019 07:08:06 +0000 (14:08 +0700)
commita18656ea39855519495c9b996205b5fe9cf86123
tree26139d85005a5ca8e2e4229684151769c89f49eb
parent6599be346daf9250b9fddfdea30a1d4779538730
spi: fsl-lpspi: Fix build warning when !CONFIG_PM

Add #ifdef CONFIG_PM guard to fix build warning when !CONFIG_PM
drivers/spi/spi-fsl-lpspi.c:810:12: warning: ‘fsl_lpspi_runtime_suspend’ defined but not used [-Wunused-function]
 static int fsl_lpspi_runtime_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/spi/spi-fsl-lpspi.c:789:12: warning: ‘fsl_lpspi_runtime_resume’ defined but not used [-Wunused-function]
 static int fsl_lpspi_runtime_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~~~~~~

Fixes: 944c01a889d9 ("spi: lpspi: enable runtime pm for lpspi")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c