From 58853410ae1df2daa00cd8a28902dbe998e31a74 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 21 Feb 2006 04:32:38 +0000 Subject: Use device_class() instead of accessing dv_class directly. --- sys/dev/raidframe/rf_netbsdkintf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/raidframe') 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 -__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 #include @@ -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... */ -- cgit