Commit 7e1bbeb4 authored by Felipe Balbi's avatar Felipe Balbi

usb: host: ohci: omap: fix build breakage

commit e47d9254 (usb: move the OTG state
from the USB PHY to the OTG structure) moved
the OTG state field from struct usb_phy to
struct usb_otg but, even though I fixed many
other build breakages, I still missed one
on ohci-omap.c.

Fix the build breakage now.

drivers/usb/host/ohci-omap.c: In function ‘start_hnp’:
drivers/usb/host/ohci-omap.c:186:19: error: request for member ‘state’ in something not a structure or union
  hcd->usb_phy->otg.state = OTG_STATE_A_SUSPEND;
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 39dd96d6
...@@ -183,7 +183,7 @@ static void start_hnp(struct ohci_hcd *ohci) ...@@ -183,7 +183,7 @@ static void start_hnp(struct ohci_hcd *ohci)
otg_start_hnp(hcd->usb_phy->otg); otg_start_hnp(hcd->usb_phy->otg);
local_irq_save(flags); local_irq_save(flags);
hcd->usb_phy->otg.state = OTG_STATE_A_SUSPEND; hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND;
writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]); writel (RH_PS_PSS, &ohci->regs->roothub.portstatus [port]);
l = omap_readl(OTG_CTRL); l = omap_readl(OTG_CTRL);
l &= ~OTG_A_BUSREQ; l &= ~OTG_A_BUSREQ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment