Commit e84a7da8 authored by Raphael Gallais-Pou's avatar Raphael Gallais-Pou Committed by Greg Kroah-Hartman
Browse files

usb: dwc3: 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: default avatarRaphael Gallais-Pou <rgallaispou@gmail.com>
Acked-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20250109152055.52931-1-rgallaispou@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a266462b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment