summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-11-07 10:01:17 +0000
committerphk <phk@FreeBSD.org>1999-11-07 10:01:17 +0000
commit316e3fdcc1f84d714e29623adffbd26e6827c597 (patch)
tree5c4c9a2689cb8df33d8b2f09afd872629719f445 /sys/alpha
parentcbb740c394cd16bbefa3b761342be032d7c3821e (diff)
downloadFreeBSD-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.c12
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 */
OpenPOWER on IntegriCloud