summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/sys/dev
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-18 08:31:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-18 08:33:00 +0200
commitb43517be379decb653f4e3455afc1636a5a5c278 (patch)
treed9d0e1688b06e2047c842494af3347da19a0fa34 /rtemsbsd/sys/dev
parentdev/rtwn: Import new files from FreeBSD. (diff)
downloadrtems-libbsd-b43517be379decb653f4e3455afc1636a5a5c278.tar.bz2
ohci: Fix for BSP_USB_OTG_TRANSCEIVER_I2C_ADDR
Diffstat (limited to 'rtemsbsd/sys/dev')
-rwxr-xr-xrtemsbsd/sys/dev/usb/controller/ohci_lpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtemsbsd/sys/dev/usb/controller/ohci_lpc.c b/rtemsbsd/sys/dev/usb/controller/ohci_lpc.c
index ac806ec8..e70f0540 100755
--- a/rtemsbsd/sys/dev/usb/controller/ohci_lpc.c
+++ b/rtemsbsd/sys/dev/usb/controller/ohci_lpc.c
@@ -311,6 +311,8 @@ ohci_lpc_resume(device_t self)
int eno = 0;
#ifdef BSP_USB_OTG_TRANSCEIVER_I2C_ADDR
+ ohci_softc_t *e = device_get_softc(self);
+
if (eno == 0) {
eno = lpc_otg_clk_ctrl(
LPC_OTG_CLK_AHB | LPC_OTG_CLK_HOST | LPC_OTG_CLK_I2C