• Axel Lin's avatar
    spi: fsl-lpspi: Fix build warning when !CONFIG_PM · a18656ea
    Axel Lin authored
    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: 944c01a8 ("spi: lpspi: enable runtime pm for lpspi")
    Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    a18656ea
spi-fsl-lpspi.c 24.6 KB