aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-04-29 13:33:18 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-04-29 13:33:18 +0000
commit36d4f7c1974596fe1bc2c3921e346dea7e1e35f1 (patch)
tree038e2406efb505c7a6b9376baccaa26adad7d85b /sys
parent041cd807353480f6a0f5fd39be024e862e4cb6b4 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fb/splash.c2
-rw-r--r--sys/dev/fb/splashreg.h6
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);