OSDN Git Service

spi: lpspi: Remove CONFIG_PM_SLEEP ifdefery
authorFabio Estevam <festevam@gmail.com>
Mon, 17 Aug 2020 23:58:12 +0000 (20:58 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 18 Aug 2020 16:52:36 +0000 (17:52 +0100)
commitc3158a891bcc4c79523804e0d09a195fb1f815b4
tree8c2aa6348fec694571f00849349e8331c1101595
parent1973d5b7f03fbeff7a806565b659c4a344d19512
spi: lpspi: Remove CONFIG_PM_SLEEP ifdefery

Use __maybe_unused for the suspend()/resume() hooks and get rid of
the CONFIG_PM_SLEEP ifdefery to improve the code.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20200817235812.19518-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c