]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: renesas_usbhs: Convert to DEFINE_SIMPLE_DEV_PM_OPS()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 9 Jul 2025 19:06:26 +0000 (21:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jul 2025 17:49:52 +0000 (19:49 +0200)
commit782aee5bd3419bdf19ca85354f3164db59444de4
tree60fc42f8a2320aaae59900c7f152d3692e223122
parentc6efba9271dd9549f8bbf2593d41d902000185a1
usb: renesas_usbhs: Convert to DEFINE_SIMPLE_DEV_PM_OPS()

Convert the Renesas USBHS driver from SIMPLE_DEV_PM_OPS() to
DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr().  This lets us drop the
__maybe_unused annotations from its suspend and resume callbacks, and
reduces kernel size in case CONFIG_PM or CONFIG_PM_SLEEP is disabled.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/e1136dcd351a19b2e7145436bea1f38faa93a677.1752087914.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/common.c