summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/usb/uhci_pci.c12
-rw-r--r--sys/pci/uhci_pci.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/sys/dev/usb/uhci_pci.c b/sys/dev/usb/uhci_pci.c
index 7bfb682..db3d5c6 100644
--- a/sys/dev/usb/uhci_pci.c
+++ b/sys/dev/usb/uhci_pci.c
@@ -347,12 +347,12 @@ uhci_pci_detach(device_t self)
we should call something like uhci_deinit
#endif
- /*
- * disable interrupts that might have been switched on in
- * uhci_init.
- */
- if (sc->iot && sc->ioh)
- bus_space_write_2(sc->iot, sc->ioh, UHCI_INTR, 0);
+ /*
+ * disable interrupts that might have been switched on in
+ * uhci_init.
+ */
+ if (sc->iot && sc->ioh)
+ bus_space_write_2(sc->iot, sc->ioh, UHCI_INTR, 0);
if (sc->irq_res && sc->ih) {
int err = bus_teardown_intr(self, sc->irq_res, sc->ih);
diff --git a/sys/pci/uhci_pci.c b/sys/pci/uhci_pci.c
index 7bfb682..db3d5c6 100644
--- a/sys/pci/uhci_pci.c
+++ b/sys/pci/uhci_pci.c
@@ -347,12 +347,12 @@ uhci_pci_detach(device_t self)
we should call something like uhci_deinit
#endif
- /*
- * disable interrupts that might have been switched on in
- * uhci_init.
- */
- if (sc->iot && sc->ioh)
- bus_space_write_2(sc->iot, sc->ioh, UHCI_INTR, 0);
+ /*
+ * disable interrupts that might have been switched on in
+ * uhci_init.
+ */
+ if (sc->iot && sc->ioh)
+ bus_space_write_2(sc->iot, sc->ioh, UHCI_INTR, 0);
if (sc->irq_res && sc->ih) {
int err = bus_teardown_intr(self, sc->irq_res, sc->ih);
OpenPOWER on IntegriCloud