diff options
author | phk <phk@FreeBSD.org> | 1999-11-07 10:01:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-07 10:01:17 +0000 |
commit | 316e3fdcc1f84d714e29623adffbd26e6827c597 (patch) | |
tree | 5c4c9a2689cb8df33d8b2f09afd872629719f445 /sys/alpha | |
parent | cbb740c394cd16bbefa3b761342be032d7c3821e (diff) | |
download | FreeBSD-src-316e3fdcc1f84d714e29623adffbd26e6827c597.zip FreeBSD-src-316e3fdcc1f84d714e29623adffbd26e6827c597.tar.gz |
Remove the devsw magic from DEV_MODULE()
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/promcons.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/alpha/alpha/promcons.c b/sys/alpha/alpha/promcons.c index 649df02..4a54311 100644 --- a/sys/alpha/alpha/promcons.c +++ b/sys/alpha/alpha/promcons.c @@ -242,6 +242,16 @@ promtimeout(v) promtimeouthandle = timeout(promtimeout, tp, polltime); } -DEV_MODULE(prom, CDEV_MAJOR, NOMAJ, prom_cdevsw, 0, 0); +static int +prom_modevent(module_t mod, int type, void *data) +{ + if (type == MOD_LOAD) { + cdevsw_add(&prom_cdevsw); + return(0); + } + return(EOPNOTSUPP); +} + +DEV_MODULE(prom, prom_modevent, 0); #endif /* _PMAP_MAY_USE_PROM_CONSOLE */ |