summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ohci_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/ohci_pci.c')
-rw-r--r--sys/dev/usb/ohci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ohci_pci.c b/sys/dev/usb/ohci_pci.c
index 1f5f345..27fe020 100644
--- a/sys/dev/usb/ohci_pci.c
+++ b/sys/dev/usb/ohci_pci.c
@@ -174,11 +174,11 @@ ohci_pci_attach(device_t self)
}
usbus = device_add_child(self, "usb", -1);
- device_set_ivars(usbus, sc);
if (!usbus) {
device_printf(self, "could not add USB device\n");
return ENOMEM;
}
+ device_set_ivars(usbus, sc);
switch (pci_get_devid(self)) {
case PCI_OHCI_DEVICEID_ALADDIN_V:
OpenPOWER on IntegriCloud