]> git.ipfire.org Git - people/ms/linux.git/commit
usb: ehci: Simplify platform driver registration
authorGuenter Roeck <linux@roeck-us.net>
Tue, 7 Sep 2021 12:30:02 +0000 (05:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 08:33:52 +0000 (10:33 +0200)
commitaad06846a2304e48e7a223fad8971eed16179606
tree421729adf005802ae6398ce7e36d1bf46923ff88
parent91fac0741d4817945c6ee0a17591421e7f5ecb86
usb: ehci: Simplify platform driver registration

Use platform_register_drivers() and platform_unregister_drivers() to
register and unregister ehci platform drivers. This simplifies the code
and prevents the following build errors seen with sparc:allmodconfig.

drivers/usb/host/ehci-hcd.c:1301: error:
"PLATFORM_DRIVER" redefined
drivers/usb/host/ehci-sh.c:173:31: error:
'ehci_hcd_sh_driver' defined but not used

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210907123002.3951446-1-linux@roeck-us.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c