summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2006-02-21 04:32:38 +0000
committerthorpej <thorpej@NetBSD.org>2006-02-21 04:32:38 +0000
commit58853410ae1df2daa00cd8a28902dbe998e31a74 (patch)
tree6dc3153a215127d3b7c98a551407e3e5d731cce8 /sys/dev/raidframe
parent1cdae6d6e207ef32099048d454c1650f6f6cf3b1 (diff)
Use device_class() instead of accessing dv_class directly.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index b81baac1fc7..527929aa244 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.199 2006/01/08 22:26:30 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.200 2006/02/21 04:32:38 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -146,7 +146,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.199 2006/01/08 22:26:30 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.200 2006/02/21 04:32:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -383,6 +383,8 @@ raidattach(int num)
bufq_alloc(&raid_softc[raidID].buf_queue, "fcfs", 0);
pseudo_disk_init(&raid_softc[raidID].sc_dkdev);
+ /* XXXJRT Should use config_attach_pseudo() */
+
raidrootdev[raidID].dv_class = DV_DISK;
raidrootdev[raidID].dv_cfdata = NULL;
raidrootdev[raidID].dv_unit = raidID;
@@ -2593,7 +2595,7 @@ rf_find_raid_components()
dv = dv->dv_list.tqe_next) {
/* we are only interested in disks... */
- if (dv->dv_class != DV_DISK)
+ if (device_class(dv) != DV_DISK)
continue;
/* we don't care about floppies... */