summaryrefslogtreecommitdiff
path: root/sys/dev/isa/mcd.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-07-25 08:02:18 +0000
committerdholland <dholland@NetBSD.org>2014-07-25 08:02:18 +0000
commitda8feef99a1863b3cdff350f8a1a089d34d09185 (patch)
tree1c6c71186b1e535a1dc636a9188051e98bdd8561 /sys/dev/isa/mcd.c
parent1be6681b34110f97e344843acf115f2eaf591a2b (diff)
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
Diffstat (limited to 'sys/dev/isa/mcd.c')
-rw-r--r--sys/dev/isa/mcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c
index 89ac71915b8..9aa0bfb600f 100644
--- a/sys/dev/isa/mcd.c
+++ b/sys/dev/isa/mcd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mcd.c,v 1.111 2014/03/16 05:20:28 dholland Exp $ */
+/* $NetBSD: mcd.c,v 1.112 2014/07/25 08:02:19 dholland Exp $ */
/*
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -56,7 +56,7 @@
/*static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore";*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mcd.c,v 1.111 2014/03/16 05:20:28 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcd.c,v 1.112 2014/07/25 08:02:19 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -214,6 +214,7 @@ const struct bdevsw mcd_bdevsw = {
.d_ioctl = mcdioctl,
.d_dump = mcddump,
.d_psize = mcdsize,
+ .d_discard = nodiscard,
.d_flag = D_DISK
};