Re: [PATCH] spi: stm32: avoid ifdef CONFIG_PM for pm callbacks

2021-03-12 Thread Mark Brown
On Fri, 12 Mar 2021 11:35:29 +0100, Alain Volmat wrote: > Avoid CONFIG_PM preprocessor check for pm suspend/resume > callbacks and identify the functions with __maybe_unused. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: stm32: avoid i

[PATCH] spi: stm32: avoid ifdef CONFIG_PM for pm callbacks

2021-03-12 Thread Alain Volmat
Avoid CONFIG_PM preprocessor check for pm suspend/resume callbacks and identify the functions with __maybe_unused. Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-st