]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ahci: st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Thu, 9 Jan 2025 17:54:27 +0000 (18:54 +0100)
committerNiklas Cassel <cassel@kernel.org>
Wed, 15 Jan 2025 14:21:27 +0000 (15:21 +0100)
commitf2809aa4f591d98e4c560a23d7eaca804a8afc54
tree13fc653f5e0b16d0fbcb05e744f7fe1a1cf437f7
parentc9b5be909e6595547ed5d45aef39fd65948aa342
ahci: st: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()

Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less error prone than the
use of #ifdef based kernel configuration guards.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://lore.kernel.org/r/20250109175427.64384-1-rgallaispou@gmail.com
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/ahci_st.c