diff options
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index b4bbf8f2c23..e54e468c567 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -2007,7 +2007,6 @@ bad_config: | |||
2007 | /* host side needs more setup */ | 2007 | /* host side needs more setup */ |
2008 | if (is_host_enabled(musb)) { | 2008 | if (is_host_enabled(musb)) { |
2009 | struct usb_hcd *hcd = musb_to_hcd(musb); | 2009 | struct usb_hcd *hcd = musb_to_hcd(musb); |
2010 | u8 busctl; | ||
2011 | 2010 | ||
2012 | otg_set_host(musb->xceiv, &hcd->self); | 2011 | otg_set_host(musb->xceiv, &hcd->self); |
2013 | 2012 | ||
@@ -2018,9 +2017,9 @@ bad_config: | |||
2018 | 2017 | ||
2019 | /* program PHY to use external vBus if required */ | 2018 | /* program PHY to use external vBus if required */ |
2020 | if (plat->extvbus) { | 2019 | if (plat->extvbus) { |
2021 | busctl = musb_readb(musb->mregs, MUSB_ULPI_BUSCONTROL); | 2020 | u8 busctl = musb_read_ulpi_buscontrol(musb->mregs); |
2022 | busctl |= MUSB_ULPI_USE_EXTVBUS; | 2021 | busctl |= MUSB_ULPI_USE_EXTVBUS; |
2023 | musb_writeb(musb->mregs, MUSB_ULPI_BUSCONTROL, busctl); | 2022 | musb_write_ulpi_buscontrol(musb->mregs, busctl); |
2024 | } | 2023 | } |
2025 | } | 2024 | } |
2026 | 2025 | ||