merged.
Bruce
In message: [linux-yocto][linux-yocto v5.15/standard/sdkv5.10/axxia &
v5.15/standard/preempt-rt/sdkv5.10/axxia ][PATCH 1/1] usb: ehci: adjust to use
platform_drivers to register/unregister driver
on 25/10/2022 Liwei Song wrote:
> Since upstream commit aad06846a230 ("usb: ehci: Simplify platform driver
> registration"), PLATFORM_DRIVER was replace by platform_drivers,
> adjust the old implement to use platform_drivers to register or
> unregister platform.
>
> This is use to fix a compile warning that import by axxia SDK
> commit 7048bd2a0f58 ("usb: xhci: Add CI13612A USB driver for
> Axxia AXM55xx"):
>
> In file included from drivers/usb/host/ehci-hcd.c:1325:0:
> drivers/usb/host/ehci-ci13612.c:223:31: warning: ‘ci13612_ehci_driver’
> defined but not used [-Wunused-variable]
> static struct platform_driver ci13612_ehci_driver = {
> ^~~~~~~~~~~~~~~~~~~
>
> Signed-off-by: Liwei Song <[email protected]>
> ---
> drivers/usb/host/ehci-hcd.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
> index 8e0414e8438e..9b9dca484237 100644
> --- a/drivers/usb/host/ehci-hcd.c
> +++ b/drivers/usb/host/ehci-hcd.c
> @@ -1306,6 +1306,10 @@ MODULE_LICENSE ("GPL");
> #include "ehci-grlib.c"
> #endif
>
> +#ifdef CONFIG_USB_CI13612_HCD
> +#include "ehci-ci13612.c"
> +#endif
> +
> static struct platform_driver * const platform_drivers[] = {
> #ifdef CONFIG_USB_EHCI_SH
> &ehci_hcd_sh_driver,
> @@ -1319,12 +1323,10 @@ static struct platform_driver * const
> platform_drivers[] = {
> #ifdef CONFIG_SPARC_LEON
> &ehci_grlib_driver,
> #endif
> -};
> -
> #ifdef CONFIG_USB_CI13612_HCD
> -#include "ehci-ci13612.c"
> -#define PLATFORM_DRIVER ci13612_ehci_driver
> + &ci13612_ehci_driver,
> #endif
> +};
>
> static int __init ehci_hcd_init(void)
> {
> --
> 2.32.0
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11814):
https://lists.yoctoproject.org/g/linux-yocto/message/11814
Mute This Topic: https://lists.yoctoproject.org/mt/94552882/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-