diff --git a/sys/dev/pcf/envctrl.c b/sys/dev/pcf/envctrl.c index 7c1cb1b153f8..d577aa43699f 100644 --- a/sys/dev/pcf/envctrl.c +++ b/sys/dev/pcf/envctrl.c @@ -55,6 +55,7 @@ __FBSDID("$FreeBSD$"); #include +#include #include #include #include "iicbus_if.h" @@ -189,5 +190,3 @@ envctrl_detach(device_t dev) DRIVER_MODULE(envctrl, ebus, envctrl_driver, envctrl_devclass, 0, 0); DRIVER_MODULE(iicbus, envctrl, iicbus_driver, iicbus_devclass, 0, 0); -MODULE_DEPEND(envctrl, iicbus, PCF_MINVER, PCF_PREFVER, PCF_MAXVER); -MODULE_VERSION(envctrl, PCF_MODVER); diff --git a/sys/dev/pcf/pcf.c b/sys/dev/pcf/pcf.c index e6c9967e5e8a..e77481260e60 100644 --- a/sys/dev/pcf/pcf.c +++ b/sys/dev/pcf/pcf.c @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include +#include #include #include #include "iicbus_if.h" @@ -478,3 +479,7 @@ pcf_read(device_t dev, char *buf, int len, int *read, int last, return (error); } + +DRIVER_MODULE(iicbus, pcf, iicbus_driver, iicbus_devclass, 0, 0); +MODULE_DEPEND(pcf, iicbus, PCF_MINVER, PCF_PREFVER, PCF_MAXVER); +MODULE_VERSION(pcf, PCF_MODVER); diff --git a/sys/dev/pcf/pcf_ebus.c b/sys/dev/pcf/pcf_ebus.c index ad0e36e027ea..d354d9a0296b 100644 --- a/sys/dev/pcf/pcf_ebus.c +++ b/sys/dev/pcf/pcf_ebus.c @@ -252,5 +252,3 @@ pcf_ebus_detach(device_t dev) } DRIVER_MODULE(pcf_ebus, ebus, pcf_ebus_driver, pcf_ebus_devclass, 0, 0); -MODULE_DEPEND(pcf_ebus, iicbus, PCF_MINVER, PCF_PREFVER, PCF_MAXVER); -MODULE_VERSION(pcf_ebus, PCF_MODVER); diff --git a/sys/dev/pcf/pcf_isa.c b/sys/dev/pcf/pcf_isa.c index 3bb1ec6484d8..e8116359db44 100644 --- a/sys/dev/pcf/pcf_isa.c +++ b/sys/dev/pcf/pcf_isa.c @@ -209,5 +209,3 @@ pcf_isa_detach(device_t dev) } DRIVER_MODULE(pcf_isa, isa, pcf_isa_driver, pcf_isa_devclass, 0, 0); -MODULE_DEPEND(pcf_isa, iicbus, PCF_MINVER, PCF_PREFVER, PCF_MAXVER); -MODULE_VERSION(pcf_isa, PCF_MODVER);