[PATCH v2] net: stmmac: sti: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
Simon Horman
horms at kernel.org
Fri Jan 10 01:55:08 PST 2025
On Thu, Jan 09, 2025 at 04:58:42PM +0100, Raphael Gallais-Pou wrote:
> 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 at gmail.com>
> ---
> Changes in v2:
> - Split serie in single patches
> - Remove irrelevant 'Link:' from commit log
> - Link to v1: https://lore.kernel.org/r/20241229-update_pm_macro-v1-5-c7d4c4856336@gmail.com
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the linux-arm-kernel
mailing list