Module Name: src Committed By: christos Date: Sat Jan 2 19:27:41 UTC 2010
Modified Files: src/sys/dev/ic: ne2000.c ne2000var.h Log Message: nothing uses ne2000_power anymore. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/dev/ic/ne2000.c cvs rdiff -u -r1.21 -r1.22 src/sys/dev/ic/ne2000var.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/ne2000.c diff -u src/sys/dev/ic/ne2000.c:1.62 src/sys/dev/ic/ne2000.c:1.63 --- src/sys/dev/ic/ne2000.c:1.62 Tue May 5 08:37:24 2009 +++ src/sys/dev/ic/ne2000.c Sat Jan 2 14:27:41 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ne2000.c,v 1.62 2009/05/05 12:37:24 nonaka Exp $ */ +/* $NetBSD: ne2000.c,v 1.63 2010/01/02 19:27:41 christos Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -48,7 +48,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.62 2009/05/05 12:37:24 nonaka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.63 2010/01/02 19:27:41 christos Exp $"); #include "opt_ipkdb.h" @@ -916,35 +916,6 @@ } #endif -void -ne2000_power(int why, void *arg) -{ - struct ne2000_softc *sc = arg; - struct dp8390_softc *dsc = &sc->sc_dp8390; - struct ifnet *ifp = &dsc->sc_ec.ec_if; - int s; - - s = splnet(); - switch (why) { - case PWR_SUSPEND: - case PWR_STANDBY: - dp8390_stop(dsc); - dp8390_disable(dsc); - break; - case PWR_RESUME: - if (ifp->if_flags & IFF_UP) { - if (dp8390_enable(dsc) == 0) - dp8390_init(dsc); - } - break; - case PWR_SOFTSUSPEND: - case PWR_SOFTSTANDBY: - case PWR_SOFTRESUME: - break; - } - splx(s); -} - bool ne2000_suspend(device_t self PMF_FN_ARGS) { Index: src/sys/dev/ic/ne2000var.h diff -u src/sys/dev/ic/ne2000var.h:1.21 src/sys/dev/ic/ne2000var.h:1.22 --- src/sys/dev/ic/ne2000var.h:1.21 Tue May 5 08:37:24 2009 +++ src/sys/dev/ic/ne2000var.h Sat Jan 2 14:27:41 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ne2000var.h,v 1.21 2009/05/05 12:37:24 nonaka Exp $ */ +/* $NetBSD: ne2000var.h,v 1.22 2010/01/02 19:27:41 christos Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -65,9 +65,6 @@ int ne2000_ipkdb_attach(struct ipkdb_if *); #endif -/* dopowerhooks(9) - deprecated */ -void ne2000_power(int, void *); - /* pmf(9) */ bool ne2000_suspend(device_t PMF_FN_PROTO); bool ne2000_resume(device_t PMF_FN_PROTO);