Re: [PATCH] spi: atmel: remove warning when !CONFIG_PM_SLEEP

2015-09-18 Thread Nicolas Ferre
Le 10/09/2015 10:19, Alexandre Belloni a écrit : > 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] >

[PATCH] spi: atmel: remove warning when !CONFIG_PM_SLEEP

2015-09-10 Thread Alexandre Belloni
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’