provide a diagnostic for unsplit drivers.

This commit is contained in:
christos 2011-06-01 02:43:33 +00:00
parent 7524727f91
commit 1f1986d685
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_autoconf.c,v 1.215 2011/04/24 18:46:22 rmind Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.216 2011/06/01 02:43:33 christos Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.215 2011/04/24 18:46:22 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.216 2011/06/01 02:43:33 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@ -1330,6 +1330,9 @@ config_devalloc(const device_t parent, const cfdata_t cf, const int *locs)
dev = kmem_zalloc(sizeof(*dev), KM_SLEEP);
} else {
dev = dev_private;
#ifdef DIAGNOSTIC
printf("%s has not been converted to device_t\n", cd->cd_name);
#endif
}
if (dev == NULL)
panic("config_devalloc: memory allocation for device_t failed");