diff options
| author | dholland <dholland@NetBSD.org> | 2014-07-25 08:02:18 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2014-07-25 08:02:18 +0000 |
| commit | da8feef99a1863b3cdff350f8a1a089d34d09185 (patch) | |
| tree | 1c6c71186b1e535a1dc636a9188051e98bdd8561 /sys/dev/spi | |
| parent | 1be6681b34110f97e344843acf115f2eaf591a2b (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/spi')
| -rw-r--r-- | sys/dev/spi/spiflash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/spi/spiflash.c b/sys/dev/spi/spiflash.c index 498bcad3423..bc27496367d 100644 --- a/sys/dev/spi/spiflash.c +++ b/sys/dev/spi/spiflash.c @@ -1,4 +1,4 @@ -/* $NetBSD: spiflash.c,v 1.13 2014/03/28 11:52:51 hkenken Exp $ */ +/* $NetBSD: spiflash.c,v 1.14 2014/07/25 08:02:20 dholland Exp $ */ /*- * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.13 2014/03/28 11:52:51 hkenken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.14 2014/07/25 08:02:20 dholland Exp $"); #include <sys/param.h> #include <sys/conf.h> @@ -147,6 +147,7 @@ const struct bdevsw spiflash_bdevsw = { .d_ioctl = spiflash_ioctl, .d_dump = nodump, .d_psize = nosize, + .d_discard = nodiscard, .d_flag = D_DISK, }; |
