if we are compiling with smbus support, properly depend upon the iic and

smbus modules, otherwise as a module you can't kldload bktr...

MFC after:	3 days
This commit is contained in:
John-Mark Gurney 2006-01-27 08:42:48 +00:00
parent 82eedee4a4
commit bb80263411
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154897

View File

@ -262,6 +262,13 @@ static struct cdevsw bktr_cdevsw = {
.d_name = "bktr",
};
#ifdef BKTR_USE_FREEBSD_SMBUS
#include <dev/iicbus/iiconf.h>
#include <dev/smbus/smbconf.h>
MODULE_DEPEND(bktr, iicbb, IICBB_MINVER, IICBB_MODVER, IICBB_MAXVER);
MODULE_DEPEND(bktr, iicbus, IICBUS_MINVER, IICBUS_MODVER, IICBUS_MAXVER);
MODULE_DEPEND(bktr, smbus, SMBUS_MINVER, SMBUS_MODVER, SMBUS_MAXVER);
#endif
DRIVER_MODULE(bktr, pci, bktr_driver, bktr_devclass, 0, 0);
MODULE_DEPEND(bktr, bktr_mem, 1,1,1);
MODULE_VERSION(bktr, 1);