summaryrefslogtreecommitdiff
path: root/sys/dev/random/randomdev.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2014-11-07 20:23:43 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2014-11-07 20:23:43 +0000
commit48e279eaa72f23e23b369263b7a0e311a9a7cb3a (patch)
treee75a7f41d6cc90aaf433717474427408ea8fbcca /sys/dev/random/randomdev.c
parent4d1a2fee3840d2355bdc89f50857df71e5f443c7 (diff)
Notes
Diffstat (limited to 'sys/dev/random/randomdev.c')
-rw-r--r--sys/dev/random/randomdev.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index bc41d511a8f1..c61bed790c35 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -159,15 +159,7 @@ randomdev_modevent(module_t mod __unused, int type, void *data __unused)
return (error);
}
-#define EARLY_2_DEV_MODULE(name, evh, arg) \
-static moduledata_t name##_mod = { \
- #name, \
- evh, \
- arg \
-}; \
-DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_SECOND)
-
-EARLY_2_DEV_MODULE(randomdev, randomdev_modevent, NULL);
+DEV_MODULE_ORDERED(randomdev, randomdev_modevent, NULL, SI_ORDER_SECOND);
MODULE_VERSION(randomdev, 1);
/* ================