diff options
author | peter <peter@FreeBSD.org> | 2000-04-29 13:33:18 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-04-29 13:33:18 +0000 |
commit | 505cc5752fe7841cc0e2242adf062593e522bad6 (patch) | |
tree | 2b73099bb577de559b3b1927a6777af4c347ab38 /sys | |
parent | 454deb74dc6032606ef3238f46610ae3e4f5794b (diff) | |
download | FreeBSD-src-505cc5752fe7841cc0e2242adf062593e522bad6.zip FreeBSD-src-505cc5752fe7841cc0e2242adf062593e522bad6.tar.gz |
Stick a module dependency on 'splash' in the saver declaration macro so
that all savers are automatically declared dependent on the splash driver.
Diffstat (limited to 'sys')
-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 c71e017..bbf361a 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 b0c7615..05e5687 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); |