diff options
| author | martin <martin@NetBSD.org> | 2017-03-25 09:21:21 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2017-03-25 09:21:21 +0000 |
| commit | 3ffe28fd9e47fa1f09c12329f293c503df46fa82 (patch) | |
| tree | 5178dc802291d4aff833f1d12f1fac0619ee23b6 /sys/dev/ofw | |
| parent | 2046184008925ccd19f36217418281b32291f2f5 (diff) | |
Virtio block devices may have a "scsi" device_type instead of "block",
so accept both.
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/ofdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofdisk.c b/sys/dev/ofw/ofdisk.c index 797262a21a6..7fbbc4f66b8 100644 --- a/sys/dev/ofw/ofdisk.c +++ b/sys/dev/ofw/ofdisk.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofdisk.c,v 1.51 2015/04/26 15:15:20 mlelstv Exp $ */ +/* $NetBSD: ofdisk.c,v 1.52 2017/03/25 09:21:21 martin Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ofdisk.c,v 1.51 2015/04/26 15:15:20 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofdisk.c,v 1.52 2017/03/25 09:21:21 martin Exp $"); #include <sys/param.h> #include <sys/buf.h> @@ -131,7 +131,7 @@ ofdisk_match(device_t parent, cfdata_t match, void *aux) if (l >= sizeof type) return 0; type[l] = 0; - return !strcmp(type, "block"); + return strcmp(type, "block") == 0 || strcmp(type, "scsi") == 0; } static void |
