summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-01-18 22:34:00 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-01-18 22:34:00 +0000
commit5061458ef220293321185647fd8e262a0c7f867f (patch)
treeaa5e9934ad65373be813a821358e85291258c485 /sys/dev/sbus
parentbe20820e20c54a116dd9a8b6020522079bb9f144 (diff)
instead of having every bit of glue set up and attach an identical
scsi_adapter struct, just do it once in the chip code. ok krw@
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/esp_sbus.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/sbus/esp_sbus.c b/sys/dev/sbus/esp_sbus.c
index 58852b43d3f..eacbdb15303 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.23 2010/06/28 18:31:02 krw Exp $ */
+/* $OpenBSD: esp_sbus.c,v 1.24 2014/01/18 22:33:59 dlg Exp $ */
/* $NetBSD: esp_sbus.c,v 1.14 2001/04/25 17:53:37 bouyer Exp $ */
/*-
@@ -54,13 +54,6 @@
#include <dev/sbus/sbusvar.h>
-struct scsi_adapter esp_switch = {
- ncr53c9x_scsi_cmd,
- scsi_minphys, /* no max at this level; handled by DMA code */
- NULL,
- NULL,
-};
-
/* #define ESP_SBUS_DEBUG */
static int esp_unit_offset;
@@ -507,7 +500,7 @@ espattach(struct esp_softc *esc, struct ncr53c9x_glue *gluep)
sc->sc_features |= NCR_F_DMASELECT;
/* Do the common parts of attachment. */
- ncr53c9x_attach(sc, &esp_switch);
+ ncr53c9x_attach(sc);
}
/*