]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: st: fix PM macros to use CONFIG_PM instead of CONFIG_PM_SLEEP
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Wed, 20 Aug 2025 18:03:10 +0000 (20:03 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 21 Aug 2025 12:14:10 +0000 (13:14 +0100)
commit7c7cda81159b1abe7d50bcef2ccc6f662e225c8b
treed78451c13f569b592abd9bd94351bd450c341e4d
parent13d0fe84a214658254a7412b2b46ec1507dc51f0
spi: st: fix PM macros to use CONFIG_PM instead of CONFIG_PM_SLEEP

pm_sleep_ptr() depends on CONFIG_PM_SLEEP while pm_ptr() depends on
CONFIG_PM.  Since ST SSC4 implements runtime PM it makes sense using
pm_ptr() here.

For the same reason replace PM macros that use CONFIG_PM.  Doing so
prevents from using __maybe_unused attribute of runtime PM functions.

Link: https://lore.kernel.org/lkml/CAMuHMdX9nkROkAJJ5odv4qOWe0bFTmaFs=Rfxsfuc9+DT-bsEQ@mail.gmail.com
Fixes: 6f8584a4826f ("spi: st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()")
Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250820180310.9605-1-rgallaispou@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-st-ssc4.c