diff options
| -rw-r--r-- | sys/dev/fb/splash.c | 2 | ||||
| -rw-r--r-- | sys/dev/fb/splashreg.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/fb/splash.c b/sys/dev/fb/splash.c index c71e017ff7e8..bbf361a490f8 100644 --- a/sys/dev/fb/splash.c +++ b/sys/dev/fb/splash.c @@ -36,6 +36,8 @@ #include <dev/fb/fbreg.h> #include <dev/fb/splashreg.h> +MODULE_VERSION(splash, 1); + /* video adapter and image decoder */ static video_adapter_t *splash_adp; static splash_decoder_t *splash_decoder; diff --git a/sys/dev/fb/splashreg.h b/sys/dev/fb/splashreg.h index b0c761562350..05e5687f5481 100644 --- a/sys/dev/fb/splashreg.h +++ b/sys/dev/fb/splashreg.h @@ -64,7 +64,8 @@ typedef struct image_decoder scrn_saver_t; name##_modevent, \ NULL \ }; \ - DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_ANY) + DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_ANY); \ + MODULE_DEPEND(name, splash, 1, 1, 1) #define SAVER_MODULE(name, sw) \ static int name##_modevent(module_t mod, int type, void *data) \ @@ -84,7 +85,8 @@ typedef struct image_decoder scrn_saver_t; name##_modevent, \ NULL \ }; \ - DECLARE_MODULE(name, name##_mod, SI_SUB_PSEUDO, SI_ORDER_MIDDLE) + DECLARE_MODULE(name, name##_mod, SI_SUB_PSEUDO, SI_ORDER_MIDDLE); \ + MODULE_DEPEND(name, splash, 1, 1, 1) /* entry point for the splash image decoder */ int splash_register(splash_decoder_t *decoder); |
