Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/ic/sl811hs.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/ic/sl811hs.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.23 retrieving revision 1.24 diff -u -p -r1.23 -r1.24 --- src/sys/dev/ic/sl811hs.c 2009/05/12 14:25:18 1.23 +++ src/sys/dev/ic/sl811hs.c 2009/11/12 19:35:59 1.24 @@ -1,4 +1,4 @@ -/* $NetBSD: sl811hs.c,v 1.23 2009/05/12 14:25:18 cegger Exp $ */ +/* $NetBSD: sl811hs.c,v 1.24 2009/11/12 19:35:59 dyoung Exp $ */ /* * Not (c) 2007 Matthew Orgass @@ -86,7 +86,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.23 2009/05/12 14:25:18 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.24 2009/11/12 19:35:59 dyoung Exp $"); #include #include @@ -1231,19 +1231,15 @@ slhci_detach(struct slhci_softc *sc, int int slhci_activate(device_t self, enum devact act) { - struct slhci_softc *sc; - - sc = device_private(self); - - if (act != DVACT_DEACTIVATE) - return EOPNOTSUPP; - - slhci_lock_call(sc, &slhci_halt, NULL, NULL); + struct slhci_softc *sc = device_private(self); - if (sc->sc_child) - return config_deactivate(sc->sc_child); - else + switch (act) { + case DVACT_DEACTIVATE: + slhci_lock_call(sc, &slhci_halt, NULL, NULL); return 0; + default: + return EOPNOTSUPP; + } } void