diff options
author | Tom Rini <trini@konsulko.com> | 2023-09-16 12:14:08 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-16 12:14:08 -0400 |
commit | 8fcd28aae590cdca86f497f1e2431f6e4af1b268 (patch) | |
tree | 3daf43bed41e1ff8eed9f8e1a020bf10319e9095 /drivers/usb/dwc3/dwc3-omap.c | |
parent | 2fe4b54556ea6271237b35de68dc458bfceab94c (diff) | |
parent | 2caf974b5fac69a1b778e64503f2c107a8d7c3a3 (diff) |
Merge branch 'next' of git://source.denx.de/u-boot-usb into next
- Rework gadget device handling
Diffstat (limited to 'drivers/usb/dwc3/dwc3-omap.c')
-rw-r--r-- | drivers/usb/dwc3/dwc3-omap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 9596bf144c..ff4ebfb444 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -119,7 +119,7 @@ #define USBOTGSS_UTMI_OTG_STATUS_VBUSVALID (1 << 1) struct dwc3_omap { - struct device *dev; + struct udevice *dev; void __iomem *base; @@ -429,19 +429,19 @@ void dwc3_omap_uboot_exit(int index) /** * dwc3_omap_uboot_interrupt_status - check the status of interrupt - * @index: index of this controller + * @dev: device of this controller * * Checks the status of interrupts and returns true if an interrupt * is detected or false otherwise. * * Generally called from board file. */ -int dwc3_omap_uboot_interrupt_status(int index) +int dwc3_omap_uboot_interrupt_status(struct udevice *dev) { struct dwc3_omap *omap = NULL; list_for_each_entry(omap, &dwc3_omap_list, list) - if (omap->index == index) + if (omap->dev == dev) return dwc3_omap_interrupt(-1, omap); return 0; |