Add module dependency for cam if configured as ATA_CAM.

This commit is contained in:
Takanori Watanabe 2009-12-10 16:55:16 +00:00
parent 478cae8a97
commit 28336d6080
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200359

View File

@ -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)