]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: sti: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
authorRaphael Gallais-Pou <rgallaispou@gmail.com>
Thu, 9 Jan 2025 15:58:42 +0000 (16:58 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2025 03:01:59 +0000 (19:01 -0800)
commit6e702e6aba84c73617d767285de5bc6270706026
tree7564f9b20725562562b283f83c59d9b0b2343145
parenta4b6539038c1aa1ae871aacf6e41b566c3613993
net: stmmac: sti: 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: Simon Horman <horms@kernel.org>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Link: https://patch.msgid.link/20250109155842.60798-1-rgallaispou@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c