summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 884872c..b632711 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -334,10 +334,10 @@ find_major(struct cdevsw *devsw)
{
int i;
- if (devsw->d_maj != MAJOR_AUTO) {
+ if (devsw->d_maj != 0) {
printf("NOTICE: Ignoring d_maj hint from driver \"%s\", %s",
devsw->d_name, "driver should be updated/fixed\n");
- devsw->d_maj = MAJOR_AUTO;
+ devsw->d_maj = 0;
}
for (i = NUMCDEVSW - 1; i > 0; i--)
if (reserved_majors[i] != i)
@@ -353,7 +353,7 @@ fini_cdevsw(struct cdevsw *devsw)
{
if (devsw->d_flags & D_ALLOCMAJ) {
reserved_majors[devsw->d_maj] = 0;
- devsw->d_maj = MAJOR_AUTO;
+ devsw->d_maj = 0;
devsw->d_flags &= ~D_ALLOCMAJ;
}
devsw->d_flags &= ~D_INIT;
OpenPOWER on IntegriCloud