diff options
| author | thorpej <thorpej@NetBSD.org> | 2002-09-27 02:24:06 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2002-09-27 02:24:06 +0000 |
| commit | d1ad2ac4f2062ce3afc5b5cf52784c29928a047d (patch) | |
| tree | 30581f9980f41b53f40d41f92187e74060252b69 /sys/dev/raidframe | |
| parent | bb34bc8caa979b91e801b72721b3b1d50b619485 (diff) | |
Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index cfefa52af38..31d59c2de5a 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.139 2002/09/23 03:31:51 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.140 2002/09/27 02:24:31 thorpej Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -114,7 +114,7 @@ ***********************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.139 2002/09/23 03:31:51 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.140 2002/09/27 02:24:31 thorpej Exp $"); #include <sys/param.h> #include <sys/errno.h> @@ -2667,21 +2667,21 @@ rf_find_raid_components() continue; /* we don't care about floppies... */ - if (!strcmp(dv->dv_cfdata->cf_driver->cd_name,"fd")) { + if (!strcmp(dv->dv_cfdata->cf_name,"fd")) { continue; } /* we don't care about CD's... */ - if (!strcmp(dv->dv_cfdata->cf_driver->cd_name,"cd")) { + if (!strcmp(dv->dv_cfdata->cf_name,"cd")) { continue; } /* hdfd is the Atari/Hades floppy driver */ - if (!strcmp(dv->dv_cfdata->cf_driver->cd_name,"hdfd")) { + if (!strcmp(dv->dv_cfdata->cf_name,"hdfd")) { continue; } /* fdisa is the Atari/Milan floppy driver */ - if (!strcmp(dv->dv_cfdata->cf_driver->cd_name,"fdisa")) { + if (!strcmp(dv->dv_cfdata->cf_name,"fdisa")) { continue; } |
