summaryrefslogtreecommitdiffstats
path: root/sys/dev/flash.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2010-08-28 20:23:22 +0000
committermatthew <matthew@openbsd.org>2010-08-28 20:23:22 +0000
commit69dcd9e6f3eb15727ad44182e8bbe7e25c8f89b3 (patch)
tree8ba7160525226efeaa979631cb69c6928671af38 /sys/dev/flash.c
parentrename the *_power functions to *_powerhook to indicate that we've been (diff)
downloadwireguard-openbsd-69dcd9e6f3eb15727ad44182e8bbe7e25c8f89b3.tar.xz
wireguard-openbsd-69dcd9e6f3eb15727ad44182e8bbe7e25c8f89b3.zip
Garbage collect struct dkdriver.
ok miod@; "please go ahead" jsing@
Diffstat (limited to 'sys/dev/flash.c')
-rw-r--r--sys/dev/flash.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c
index ec5eebd53d4..7ca3df7808f 100644
--- a/sys/dev/flash.c
+++ b/sys/dev/flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flash.c,v 1.15 2010/04/23 15:25:21 jsing Exp $ */
+/* $OpenBSD: flash.c,v 1.16 2010/08/28 20:23:22 matthew Exp $ */
/*
* Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
@@ -95,8 +95,6 @@ struct cfdriver flash_cd = {
NULL, "flash", DV_DISK
};
-struct dkdriver flashdkdriver = { flashstrategy };
-
void
flashattach(struct flash_softc *sc, struct flash_ctl_tag *tag,
void *cookie)
@@ -158,7 +156,6 @@ flashattach(struct flash_softc *sc, struct flash_ctl_tag *tag,
/*
* Initialize and attach the disk structure.
*/
- sc->sc_dk.dk_driver = &flashdkdriver;
sc->sc_dk.dk_name = sc->sc_dev.dv_xname;
disk_attach(&sc->sc_dk);