diff options
Diffstat (limited to 'sys/arch/beagle/dev/omohci.c')
-rw-r--r-- | sys/arch/beagle/dev/omohci.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/arch/beagle/dev/omohci.c b/sys/arch/beagle/dev/omohci.c index 843f74778e7..94f0ce998e4 100644 --- a/sys/arch/beagle/dev/omohci.c +++ b/sys/arch/beagle/dev/omohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omohci.c,v 1.3 2010/08/30 21:32:20 deraadt Exp $ */ +/* $OpenBSD: omohci.c,v 1.4 2010/09/07 16:21:37 deraadt Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -96,7 +96,6 @@ int omohci_match(struct device *, void *, void *); void omohci_attach(struct device *, struct device *, void *); int omohci_detach(struct device *, int); int omohci_activate(struct device *, int); -void omohci_powerhook(int, void *); struct omohci_softc { ohci_softc_t sc; @@ -225,11 +224,6 @@ omohci_attach(struct device *parent, struct device *self, void *aux) return; } - sc->sc.sc_powerhook = powerhook_establish(omohci_powerhook, sc); - if (sc->sc.sc_powerhook == NULL) - printf("%s: cannot establish powerhook\n", - sc->sc.sc_bus.bdev.dv_xname); - sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus, usbctlprint); } @@ -244,11 +238,6 @@ omohci_detach(struct device *self, int flags) if (rv) return (rv); - if (sc->sc.sc_powerhook != NULL) { - powerhook_disestablish(sc->sc.sc_powerhook); - sc->sc.sc_powerhook = NULL; - } - if (sc->sc_ih0 != NULL) { intc_intr_disestablish(sc->sc_ih0); intc_intr_disestablish(sc->sc_ih1); @@ -308,12 +297,6 @@ omohci_activate(struct device *self, int act) return 0; } -int -omohci_powerhook(int why, void *arg) -{ - omohci_activate(arg, why); -} - void omohci_enable(struct omohci_softc *sc) { |