summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortakawata <takawata@FreeBSD.org>2009-12-10 16:55:16 +0000
committertakawata <takawata@FreeBSD.org>2009-12-10 16:55:16 +0000
commitdb8798e11bc370d86ed9fa3eda892f10eaf01b5e (patch)
tree4ce59a03e918f18434ad494a7e9b957662c6e16f
parent1ac82bf52a762e0fc4b17397cddcab3456d65113 (diff)
downloadFreeBSD-src-db8798e11bc370d86ed9fa3eda892f10eaf01b5e.zip
FreeBSD-src-db8798e11bc370d86ed9fa3eda892f10eaf01b5e.tar.gz
Add module dependency for cam if configured as ATA_CAM.
-rw-r--r--sys/dev/ata/ata-all.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index fcedc2f..2fc5987 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -1681,6 +1681,9 @@ ata_module_event_handler(module_t mod, int what, void *arg)
static moduledata_t ata_moduledata = { "ata", ata_module_event_handler, NULL };
DECLARE_MODULE(ata, ata_moduledata, SI_SUB_CONFIGURE, SI_ORDER_SECOND);
MODULE_VERSION(ata, 1);
+#ifdef ATA_CAM
+MODULE_DEPEND(ata, cam, 1, 1, 1);
+#endif
static void
ata_init(void)
OpenPOWER on IntegriCloud