From 8a2c47dc693f0b7d7c87cfab91e1dccefe733901 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 2 Jun 2006 20:00:57 +0000 Subject: 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. --- sys/dev/sbus/esp_sbus.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'sys/dev/sbus/esp_sbus.c') 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); } -- cgit v1.2.3