Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Properly detach phys
details: https://anonhg.NetBSD.org/src/rev/97664d252362
branches: trunk
changeset: 749630:97664d252362
user: martin <martin%NetBSD.org@localhost>
date: Fri Dec 04 22:13:26 2009 +0000
description:
Properly detach phys
diffstat:
sys/dev/ic/gem.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r e71f5846400d -r 97664d252362 sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c Fri Dec 04 20:26:35 2009 +0000
+++ b/sys/dev/ic/gem.c Fri Dec 04 22:13:26 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gem.c,v 1.87 2009/12/04 13:35:56 jdc Exp $ */
+/* $NetBSD: gem.c,v 1.88 2009/12/04 22:13:26 martin Exp $ */
/*
*
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.87 2009/12/04 13:35:56 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.88 2009/12/04 22:13:26 martin Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@@ -150,7 +150,7 @@
int
gem_detach(struct gem_softc *sc, int flags)
{
- int i, rc = 0;
+ int i;
struct ifnet *ifp = &sc->sc_ethercom.ec_if;
/*
@@ -185,7 +185,7 @@
/*FALLTHROUGH*/
case GEM_ATT_MII:
sc->sc_att_stage = GEM_ATT_MII;
- rc = config_detach_children(sc->sc_dev, flags);
+ mii_detach(&sc->sc_mii, MII_PHY_ANY, MII_OFFSET_ANY);
/*FALLTHROUGH*/
case GEM_ATT_7:
for (i = 0; i < GEM_NRXDESC; i++) {
@@ -224,7 +224,7 @@
case GEM_ATT_BACKEND_0:
break;
}
- return rc;
+ return 0;
}
static void
Home |
Main Index |
Thread Index |
Old Index