Use CFATTACH_DECL_NEW instead of CFATTACH_DECL... ICB wisdom

is that this will fix the config_devalloc panic.
This commit is contained in:
oster 2007-12-11 01:54:46 +00:00
parent eded1e0324
commit 7f102f3ada
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_netbsdkintf.c,v 1.239 2007/12/01 18:10:48 jmcneill Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.240 2007/12/11 01:54:46 oster 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.239 2007/12/01 18:10:48 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.240 2007/12/11 01:54:46 oster Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@ -264,7 +264,7 @@ struct raid_softc {
int numraid = 0;
extern struct cfdriver raid_cd;
CFATTACH_DECL(raid, sizeof(struct raid_softc),
CFATTACH_DECL_NEW(raid, sizeof(struct raid_softc),
raid_match, raid_attach, raid_detach, NULL);
/*