summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-08-28 20:23:23 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-08-28 20:23:23 +0000
commit615a8710cea5da5b47105f79d08883bc686741ba (patch)
treee811cd629c063f4aa198f39236b52054a77b8b5d /sys/arch
parent352cdfe2491abe959844953ffe3c7312f26fe9ae (diff)
Garbage collect struct dkdriver.
ok miod@; "please go ahead" jsing@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/dev/fd.c5
-rw-r--r--sys/arch/sparc/dev/presto.c7
-rw-r--r--sys/arch/sparc/dev/xd.c9
-rw-r--r--sys/arch/sparc/dev/xy.c9
-rw-r--r--sys/arch/sparc64/dev/fd.c5
5 files changed, 5 insertions, 30 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index e92e7732f5f..5b9384a12ec 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.73 2010/08/17 20:05:06 miod Exp $ */
+/* $OpenBSD: fd.c,v 1.74 2010/08/28 20:23:22 matthew Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -244,8 +244,6 @@ void fdstrategy(struct buf *);
void fdstart(struct fd_softc *);
int fdprint(void *, const char *);
-struct dkdriver fddkdriver = { fdstrategy };
-
struct fd_type *fd_nvtotype(char *, int, int);
void fd_set_motor(struct fdc_softc *fdc);
void fd_motor_off(void *arg);
@@ -644,7 +642,6 @@ fdattach(parent, self, aux)
* Initialize and attach the disk structure.
*/
fd->sc_dk.dk_name = fd->sc_dv.dv_xname;
- fd->sc_dk.dk_driver = &fddkdriver;
disk_attach(&fd->sc_dk);
/*
diff --git a/sys/arch/sparc/dev/presto.c b/sys/arch/sparc/dev/presto.c
index a2435094985..671b4e40de6 100644
--- a/sys/arch/sparc/dev/presto.c
+++ b/sys/arch/sparc/dev/presto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: presto.c,v 1.16 2010/04/23 15:25:21 jsing Exp $ */
+/* $OpenBSD: presto.c,v 1.17 2010/08/28 20:23:22 matthew Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -82,10 +82,6 @@ struct cfdriver presto_cd = {
NULL, "presto", DV_DULL
};
-struct dkdriver presto_dk = {
- prestostrategy,
-};
-
int
presto_match(struct device *parent, void *vcf, void *aux)
{
@@ -164,7 +160,6 @@ presto_attach(struct device *parent, struct device *self, void *args)
*(u_int8_t *)(sc->sc_mem + 0x0b), *(u_int8_t *)(sc->sc_mem + 0x0f));
#endif
- sc->sc_dk.dk_driver = &presto_dk;
sc->sc_dk.dk_name = sc->sc_dev.dv_xname;
disk_attach(&sc->sc_dk);
}
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c
index be6e2d52c10..ef989f96195 100644
--- a/sys/arch/sparc/dev/xd.c
+++ b/sys/arch/sparc/dev/xd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xd.c,v 1.48 2010/05/23 10:49:19 dlg Exp $ */
+/* $OpenBSD: xd.c,v 1.49 2010/08/28 20:23:22 matthew Exp $ */
/* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */
/*
@@ -269,12 +269,6 @@ struct xdc_attach_args { /* this is the "aux" args to xdattach */
};
/*
- * dkdriver
- */
-
-struct dkdriver xddkdriver = {xdstrategy};
-
-/*
* start: disk label fix code (XXX)
*/
@@ -562,7 +556,6 @@ xdattach(parent, self, aux)
* to start with a clean slate.
*/
bzero(&xd->sc_dk, sizeof(xd->sc_dk));
- xd->sc_dk.dk_driver = &xddkdriver;
xd->sc_dk.dk_name = xd->sc_dev.dv_xname;
/* if booting, init the xd_softc */
diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c
index afabb170bec..2ff2a53d9a3 100644
--- a/sys/arch/sparc/dev/xy.c
+++ b/sys/arch/sparc/dev/xy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xy.c,v 1.45 2010/05/23 10:49:19 dlg Exp $ */
+/* $OpenBSD: xy.c,v 1.46 2010/08/28 20:23:22 matthew Exp $ */
/* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */
/*
@@ -209,12 +209,6 @@ struct xyc_attach_args { /* this is the "aux" args to xyattach */
};
/*
- * dkdriver
- */
-
-struct dkdriver xydkdriver = { xystrategy };
-
-/*
* start: disk label fix code (XXX)
*/
@@ -504,7 +498,6 @@ xyattach(parent, self, aux)
* to start with a clean slate.
*/
bzero(&xy->sc_dk, sizeof(xy->sc_dk));
- xy->sc_dk.dk_driver = &xydkdriver;
xy->sc_dk.dk_name = xy->sc_dev.dv_xname;
/* if booting, init the xy_softc */
diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c
index 7b1397c4961..f7fc4321e02 100644
--- a/sys/arch/sparc64/dev/fd.c
+++ b/sys/arch/sparc64/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.31 2010/05/19 04:10:34 dlg Exp $ */
+/* $OpenBSD: fd.c,v 1.32 2010/08/28 20:23:22 matthew Exp $ */
/* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */
/*-
@@ -290,8 +290,6 @@ void fdstrategy(struct buf *);
void fdstart(struct fd_softc *);
int fdprint(void *, const char *);
-struct dkdriver fddkdriver = { fdstrategy };
-
struct fd_type *fd_nvtotype(char *, int, int);
void fd_set_motor(struct fdc_softc *fdc);
void fd_motor_off(void *arg);
@@ -670,7 +668,6 @@ fdattach(parent, self, aux)
* Initialize and attach the disk structure.
*/
fd->sc_dk.dk_name = fd->sc_dv.dv_xname;
- fd->sc_dk.dk_driver = &fddkdriver;
disk_attach(&fd->sc_dk);
/* Make sure the drive motor gets turned off at shutdown time. */