diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/dcons/dcons_os.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/dcons/dcons_os.c b/sys/dev/dcons/dcons_os.c index 788a3b3..5bf40f9 100644 --- a/sys/dev/dcons/dcons_os.c +++ b/sys/dev/dcons/dcons_os.c @@ -403,8 +403,9 @@ dcons_modevent(module_t mode, int type, void *data) switch (type) { case MOD_LOAD: ret = dcons_drv_init(1); - if (ret == 0) { + if (ret != -1) dcons_attach(); + if (ret == 0) { dcons_cnprobe(&dcons_consdev); dcons_cninit(&dcons_consdev); cnadd(&dcons_consdev); |