mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 11:24:42 +00:00
usb: gadget: ux500: Do not redefine ops if CONFIG_USB_MUSB_HOST set
In case CONFIG_USB_MUSB_HOST is set, the ux500_gadget_ops get overridden
to musb_usb_ops . Simply set the ops one way or the other depending on
whether CONFIG_USB_MUSB_HOST is set or not.
Fixes: ac4bf5d48a
("usb: gadget: ux500: Convert interrupt handling to usb_gadget_generic_ops")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240818200425.89045-1-marek.vasut+renesas@mailbox.org
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
parent
6509c3fe1c
commit
e49eeb6575
1 changed files with 2 additions and 4 deletions
|
@ -169,16 +169,14 @@ U_BOOT_DRIVER(ux500_musb) = {
|
|||
.name = "ux500-musb",
|
||||
#ifdef CONFIG_USB_MUSB_HOST
|
||||
.id = UCLASS_USB,
|
||||
.ops = &musb_usb_ops,
|
||||
#else
|
||||
.id = UCLASS_USB_GADGET_GENERIC,
|
||||
.ops = &ux500_gadget_ops,
|
||||
#endif
|
||||
.of_match = ux500_musb_ids,
|
||||
.ops = &ux500_gadget_ops,
|
||||
.probe = ux500_musb_probe,
|
||||
.remove = ux500_musb_remove,
|
||||
#ifdef CONFIG_USB_MUSB_HOST
|
||||
.ops = &musb_usb_ops,
|
||||
#endif
|
||||
.plat_auto = sizeof(struct usb_plat),
|
||||
.priv_auto = sizeof(struct ux500_glue),
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue