From b43517be379decb653f4e3455afc1636a5a5c278 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 18 Jul 2017 08:31:03 +0200 Subject: ohci: Fix for BSP_USB_OTG_TRANSCEIVER_I2C_ADDR --- rtemsbsd/sys/dev/usb/controller/ohci_lpc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rtemsbsd') 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 -- cgit v1.2.3