Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Remove superfluous activation hook.
details: https://anonhg.NetBSD.org/src/rev/cc66969c2eda
branches: trunk
changeset: 748997:cc66969c2eda
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Nov 12 19:52:14 2009 +0000
description:
Remove superfluous activation hook.
diffstat:
sys/dev/usb/u3g.c | 27 +++------------------------
1 files changed, 3 insertions(+), 24 deletions(-)
diffs (46 lines):
diff -r 0b7b86b53abc -r cc66969c2eda sys/dev/usb/u3g.c
--- a/sys/dev/usb/u3g.c Thu Nov 12 19:51:44 2009 +0000
+++ b/sys/dev/usb/u3g.c Thu Nov 12 19:52:14 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: u3g.c,v 1.7 2009/05/29 18:49:21 plunky Exp $ */
+/* $NetBSD: u3g.c,v 1.8 2009/11/12 19:52:14 dyoung Exp $ */
/*
* Copyright (c) 2008 AnyWi Technologies
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: u3g.c,v 1.7 2009/05/29 18:49:21 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: u3g.c,v 1.8 2009/11/12 19:52:14 dyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -500,26 +500,5 @@
}
}
-static int
-u3g_activate(device_t self, enum devact act)
-{
- struct u3g_softc *sc = device_private(self);
- int i, rv = 0;
-
- switch (act) {
- case DVACT_ACTIVATE:
- return (EOPNOTSUPP);
- break;
-
- case DVACT_DEACTIVATE:
- for (i = 0; i < sc->numports; i++) {
- if (sc->sc_ucom[i] && config_deactivate(sc->sc_ucom[i]))
- rv = -1;
- }
- break;
- }
- return (rv);
-}
-
CFATTACH_DECL2_NEW(u3g, sizeof(struct u3g_softc), u3g_match,
- u3g_attach, u3g_detach, u3g_activate, NULL, u3g_childdet);
+ u3g_attach, u3g_detach, NULL, NULL, u3g_childdet);
Home |
Main Index |
Thread Index |
Old Index