usb: dwc3: exynos: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions
authorAnand Moon <linux.amoon@gmail.com>
Fri, 12 Apr 2024 14:22:54 +0000 (19:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Apr 2024 14:48:23 +0000 (16:48 +0200)
commit684e9f5f97eb4b7831298ffad140d5c1d426ff27
treead63a8fb682708d2a51006e16b09443f181214ec
parenta6a243b6ed3c53dbe2a4eadae098c3c532b98b6b
usb: dwc3: exynos: Use DEFINE_SIMPLE_DEV_PM_OPS for PM functions

This macro has the advantage over SIMPLE_DEV_PM_OPS that we don't have to
care about when the functions are actually used.

Also make use of pm_sleep_ptr() to discard all PM_SLEEP related
stuff if CONFIG_PM_SLEEP isn't enabled.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20240412142317.5191-6-linux.amoon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-exynos.c