Re: [PATCH v2] usb: ehci: Simplify platform driver registration

From: Alan Stern
Date: Tue Sep 07 2021 - 10:13:57 EST


On Tue, Sep 07, 2021 at 05:30:02AM -0700, Guenter Roeck wrote:
> 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
>
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
> v2: Explicitly include platform_device.h.
> The ps3 driver is not a platform driver, so we still have
> to handle it separately.

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>