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)
commita3fd35be0eda760610a63e179ad860189b890f0b
treea8e283d2e1e1575612bd28e7f31b49a779edbed3
parent0ee0ab0bdab4f9e6754cc6a294e90c46b53f565b
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