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/esp_sbus.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/esp_sbus.c')
-rw-r--r-- | sys/dev/sbus/esp_sbus.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/sbus/esp_sbus.c b/sys/dev/sbus/esp_sbus.c index 6ba67c2cc9d..1036fc1566a 100644 --- a/sys/dev/sbus/esp_sbus.c +++ b/sys/dev/sbus/esp_sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esp_sbus.c,v 1.17 2006/03/05 21:48:56 miod Exp $ */ +/* $OpenBSD: esp_sbus.c,v 1.18 2006/06/02 20:00:56 miod Exp $ */ /* $NetBSD: esp_sbus.c,v 1.14 2001/04/25 17:53:37 bouyer Exp $ */ /*- @@ -81,7 +81,6 @@ static int esp_unit_offset; struct esp_softc { struct ncr53c9x_softc sc_ncr53c9x; /* glue to MI code */ - struct sbusdev sc_sd; /* sbus device */ bus_space_tag_t sc_bustag; bus_dma_tag_t sc_dmatag; @@ -278,10 +277,6 @@ espattach_sbus(struct device *parent, struct device *self, void *aux) esc->sc_pri = sa->sa_pri; - /* add me to the sbus structures */ - esc->sc_sd.sd_reset = (void *) ncr53c9x_reset; - sbus_establish(&esc->sc_sd, &sc->sc_dev); - printf("%s", self->dv_xname); espattach(esc, &esp_sbus_glue); @@ -349,10 +344,6 @@ espattach_sbus(struct device *parent, struct device *self, void *aux) esc->sc_pri = sa->sa_pri; - /* add me to the sbus structures */ - esc->sc_sd.sd_reset = (void *) ncr53c9x_reset; - sbus_establish(&esc->sc_sd, &sc->sc_dev); - if (strcmp("ptscII", sa->sa_name) == 0) { espattach(esc, &esp_sbus_glue1); } else { @@ -412,10 +403,6 @@ espattach_dma(struct device *parent, struct device *self, void *aux) esc->sc_pri = sa->sa_pri; - /* Assume SBus is grandparent */ - esc->sc_sd.sd_reset = (void *) ncr53c9x_reset; - sbus_establish(&esc->sc_sd, parent); - espattach(esc, &esp_sbus_glue); } |