Module Name:    src
Committed By:   jmcneill
Date:           Sat Oct 17 13:52:52 UTC 2015

Modified Files:
        src/sys/kern: init_main.c

Log Message:
initialize MODULE_CLASS_DRIVER modules before the drivers themselves are loaded 
during autoconfiguration


To generate a diff of this commit:
cvs rdiff -u -r1.470 -r1.471 src/sys/kern/init_main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/init_main.c
diff -u src/sys/kern/init_main.c:1.470 src/sys/kern/init_main.c:1.471
--- src/sys/kern/init_main.c:1.470	Mon Sep 14 01:40:03 2015
+++ src/sys/kern/init_main.c	Sat Oct 17 13:52:52 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_main.c,v 1.470 2015/09/14 01:40:03 uebayasi Exp $	*/
+/*	$NetBSD: init_main.c,v 1.471 2015/10/17 13:52:52 jmcneill Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.470 2015/09/14 01:40:03 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.471 2015/10/17 13:52:52 jmcneill Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -739,6 +739,9 @@ configure(void)
 	drvctl_init();
 #endif
 
+	/* Initialize driver modules */
+	module_init_class(MODULE_CLASS_DRIVER);
+
 	userconf_init();
 	if (boothowto & RB_USERCONF)
 		userconf_prompt();

Reply via email to