]> git.baikalelectronics.ru Git - kernel.git/commit
spi: atmel: remove #ifdef CONFIG_{PM, SLEEP}
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 18 Jul 2022 07:10:52 +0000 (10:10 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jul 2022 12:45:32 +0000 (13:45 +0100)
commitbd7c081bc2005b83a384cc616c3c9e6db5fc85be
treea8e283d2e1e1575612bd28e7f31b49a779edbed3
parentb122afc795914f4933ad74e0db35f78ccd06f693
spi: atmel: remove #ifdef CONFIG_{PM, SLEEP}

Remove #ifdef CONFIG_PM, #ifdef CONFIG_PM_SLEEP and use
SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS() macros instead which allows
getting also rid of __maybe_unused in the code.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220718071052.1707858-1-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c