summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/conf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index e9a2f55..bb9d1b5 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -227,14 +227,16 @@ struct devsw_module_data {
/* Do not initialize fields hereafter */
};
-#define DEV_MODULE(name, evh, arg) \
+#define DEV_MODULE_ORDERED(name, evh, arg, ord) \
static moduledata_t name##_mod = { \
#name, \
evh, \
arg \
}; \
-DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
+DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, ord)
+#define DEV_MODULE(name, evh, arg) \
+ DEV_MODULE_ORDERED(name, evh, arg, SI_ORDER_MIDDLE)
void clone_setup(struct clonedevs **cdp);
void clone_cleanup(struct clonedevs **);
OpenPOWER on IntegriCloud