diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-02 20:00:57 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-02 20:00:57 +0000 |
commit | 8a2c47dc693f0b7d7c87cfab91e1dccefe733901 (patch) | |
tree | d26ab554038c5021bf138a9258249f28a85908b5 /sys/dev/sbus/if_le_ledma.c | |
parent | d9686ca22229b75ee9f8fcd3b7aba51956453f73 (diff) |
sbus_establish() and the associated linked list in the sbus softc is now only
used to store a per-device reset callback, for use in sbusreset(). Except
sbusreset() has never, ever, been used since Torek's sbus code went in.
Time to recycle those wasted bits.
Diffstat (limited to 'sys/dev/sbus/if_le_ledma.c')
-rw-r--r-- | sys/dev/sbus/if_le_ledma.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/sbus/if_le_ledma.c b/sys/dev/sbus/if_le_ledma.c index 3d66ffcce0e..8ec1be77465 100644 --- a/sys/dev/sbus/if_le_ledma.c +++ b/sys/dev/sbus/if_le_ledma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_le_ledma.c,v 1.11 2006/05/15 21:43:23 miod Exp $ */ +/* $OpenBSD: if_le_ledma.c,v 1.12 2006/06/02 20:00:56 miod Exp $ */ /* $NetBSD: if_le_ledma.c,v 1.14 2001/05/30 11:46:35 mrg Exp $ */ /*- @@ -76,7 +76,6 @@ struct le_softc { struct am7990_softc sc_am7990; /* glue to MI code */ - struct sbusdev sc_sd; /* sbus device */ bus_space_tag_t sc_bustag; bus_dmamap_t sc_dmamap; bus_space_handle_t sc_reg; /* LANCE registers */ @@ -382,11 +381,6 @@ leattach_ledma(struct device *parent, struct device *self, void *aux) sc->sc_addr = lesc->sc_laddr & 0xffffff; sc->sc_conf3 = LE_C3_BSWP | LE_C3_ACON | LE_C3_BCON; - - /* Assume SBus is grandparent */ - lesc->sc_sd.sd_reset = (void *)am7990_reset; - sbus_establish(&lesc->sc_sd, parent); - ifmedia_init(&sc->sc_ifmedia, 0, lemediachange, lemediastatus); ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T, 0, NULL); ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_5, 0, NULL); |