diff options
author | Felipe Balbi <balbi@ti.com> | 2014-11-07 19:43:45 -0600 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-10 17:19:38 -0600 |
commit | 7e1bbeb4292783dcc079156b8fa08d66d17219e0 (patch) | |
tree | e4f0806e30b1a5221c476b443481600b6547ea1f /drivers/usb | |
parent | 39dd96d6c5451f5fa005b3581bc409b109a4f0c7 (diff) | |
download | linux-7e1bbeb4292783dcc079156b8fa08d66d17219e0.tar.gz linux-7e1bbeb4292783dcc079156b8fa08d66d17219e0.tar.bz2 linux-7e1bbeb4292783dcc079156b8fa08d66d17219e0.zip |
usb: host: ohci: omap: fix build breakage
commit e47d925 (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: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index cf89b4b17f14..3e5df5af3740 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -183,7 +183,7 @@ static void start_hnp(struct ohci_hcd *ohci) otg_start_hnp(hcd->usb_phy->otg); 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]); l = omap_readl(OTG_CTRL); l &= ~OTG_A_BUSREQ; |