Commit 6e702e6a authored by Raphael Gallais-Pou's avatar Raphael Gallais-Pou Committed by Jakub Kicinski
Browse files

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: default avatarRaphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Reviewed-by: default avatarYanteng Si <si.yanteng@linux.dev>
Link: https://patch.msgid.link/20250109155842.60798-1-rgallaispou@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a4b65390
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment