iicbus: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-04-20 09:37:34 -07:00
parent c6d3976514
commit 3a86615217
48 changed files with 49 additions and 133 deletions

View File

@ -120,9 +120,7 @@ static driver_t ad7417_driver = {
sizeof(struct ad7417_softc)
};
static devclass_t ad7417_devclass;
DRIVER_MODULE(ad7417, iicbus, ad7417_driver, ad7417_devclass, 0, 0);
DRIVER_MODULE(ad7417, iicbus, ad7417_driver, 0, 0);
static MALLOC_DEFINE(M_AD7417, "ad7417", "Supply-Monitor AD7417");

View File

@ -222,8 +222,7 @@ static driver_t ad7418_driver = {
ad7418_methods,
sizeof(struct ad7418_softc),
};
static devclass_t ad7418_devclass;
DRIVER_MODULE(ad7418, iicbus, ad7418_driver, ad7418_devclass, 0, 0);
DRIVER_MODULE(ad7418, iicbus, ad7418_driver, 0, 0);
MODULE_VERSION(ad7418, 1);
MODULE_DEPEND(ad7418, iicbus, 1, 1, 1);

View File

@ -85,9 +85,7 @@ static driver_t adm1030_driver = {
sizeof(struct adm1030_softc)
};
static devclass_t adm1030_devclass;
DRIVER_MODULE(adm1030, iicbus, adm1030_driver, adm1030_devclass, 0, 0);
DRIVER_MODULE(adm1030, iicbus, adm1030_driver, 0, 0);
static int
adm1030_write_byte(device_t dev, uint32_t addr, uint8_t reg, uint8_t byte)

View File

@ -606,8 +606,7 @@ static driver_t ads111x_driver = {
ads111x_methods,
sizeof(struct ads111x_softc),
};
static devclass_t ads111x_devclass;
DRIVER_MODULE(ads111x, iicbus, ads111x_driver, ads111x_devclass, NULL, NULL);
DRIVER_MODULE(ads111x, iicbus, ads111x_driver, NULL, NULL);
MODULE_VERSION(ads111x, 1);
MODULE_DEPEND(ads111x, iicbus, 1, 1, 1);

View File

@ -143,9 +143,7 @@ static driver_t adt746x_driver = {
sizeof(struct adt746x_softc)
};
static devclass_t adt746x_devclass;
DRIVER_MODULE(adt746x, iicbus, adt746x_driver, adt746x_devclass, 0, 0);
DRIVER_MODULE(adt746x, iicbus, adt746x_driver, 0, 0);
static MALLOC_DEFINE(M_ADT746X, "adt746x", "ADT Sensor Information");

View File

@ -425,9 +425,7 @@ static driver_t ds1307_driver = {
sizeof(struct ds1307_softc),
};
static devclass_t ds1307_devclass;
DRIVER_MODULE(ds1307, iicbus, ds1307_driver, ds1307_devclass, NULL, NULL);
DRIVER_MODULE(ds1307, iicbus, ds1307_driver, NULL, NULL);
MODULE_VERSION(ds1307, 1);
MODULE_DEPEND(ds1307, iicbus, 1, 1, 1);
IICBUS_FDT_PNP_INFO(ds1307_compat_data);

View File

@ -613,9 +613,7 @@ static driver_t ds13rtc_driver = {
sizeof(struct ds13rtc_softc),
};
static devclass_t ds13rtc_devclass;
DRIVER_MODULE(ds13rtc, iicbus, ds13rtc_driver, ds13rtc_devclass, NULL, NULL);
DRIVER_MODULE(ds13rtc, iicbus, ds13rtc_driver, NULL, NULL);
MODULE_VERSION(ds13rtc, 1);
MODULE_DEPEND(ds13rtc, iicbus, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -113,9 +113,7 @@ static driver_t ds1631_driver = {
sizeof(struct ds1631_softc)
};
static devclass_t ds1631_devclass;
DRIVER_MODULE(ds1631, iicbus, ds1631_driver, ds1631_devclass, 0, 0);
DRIVER_MODULE(ds1631, iicbus, ds1631_driver, 0, 0);
static int
ds1631_write(device_t dev, uint32_t addr, uint8_t reg, uint8_t *buff, int len)

View File

@ -187,8 +187,7 @@ static driver_t ds1672_driver = {
ds1672_methods,
sizeof(struct ds1672_softc),
};
static devclass_t ds1672_devclass;
DRIVER_MODULE(ds1672, iicbus, ds1672_driver, ds1672_devclass, 0, 0);
DRIVER_MODULE(ds1672, iicbus, ds1672_driver, 0, 0);
MODULE_VERSION(ds1672, 1);
MODULE_DEPEND(ds1672, iicbus, 1, 1, 1);

View File

@ -86,9 +86,7 @@ static driver_t ds1775_driver = {
sizeof(struct ds1775_softc)
};
static devclass_t ds1775_devclass;
DRIVER_MODULE(ds1775, iicbus, ds1775_driver, ds1775_devclass, 0, 0);
DRIVER_MODULE(ds1775, iicbus, ds1775_driver, 0, 0);
static int
ds1775_read_2(device_t dev, uint32_t addr, uint8_t reg, uint16_t *data)

View File

@ -617,8 +617,6 @@ static driver_t ds3231_driver = {
sizeof(struct ds3231_softc),
};
static devclass_t ds3231_devclass;
DRIVER_MODULE(ds3231, iicbus, ds3231_driver, ds3231_devclass, NULL, NULL);
DRIVER_MODULE(ds3231, iicbus, ds3231_driver, NULL, NULL);
MODULE_VERSION(ds3231, 1);
MODULE_DEPEND(ds3231, iicbus, 1, 1, 1);

View File

@ -414,9 +414,7 @@ static driver_t pcf8574_driver = {
sizeof(struct pcf8574_softc)
};
static devclass_t pcf8574_devclass;
DRIVER_MODULE(pcf8574, iicbus, pcf8574_driver, pcf8574_devclass, 0, 0);
DRIVER_MODULE(pcf8574, iicbus, pcf8574_driver, 0, 0);
MODULE_DEPEND(pcf8574, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_DEPEND(pcf8574, gpiobus, 1, 1, 1);
MODULE_VERSION(pcf8574, 1);

View File

@ -106,9 +106,7 @@ static struct ofw_compat_data tca6408_compat_data[] = {
{ NULL, 0}
};
devclass_t tca6408_devclass;
DRIVER_MODULE(tca6408, iicbus, tca6408_driver, tca6408_devclass, 0, 0);
DRIVER_MODULE(tca6408, iicbus, tca6408_driver, 0, 0);
IICBUS_FDT_PNP_INFO(tca6408_compat_data);
static int

View File

@ -131,9 +131,7 @@ static driver_t tca6416_driver = {
sizeof(struct tca6416_softc)
};
static devclass_t tca6416_devclass;
DRIVER_MODULE(tca6416, iicbus, tca6416_driver, tca6416_devclass, 0, 0);
DRIVER_MODULE(tca6416, iicbus, tca6416_driver, 0, 0);
MODULE_VERSION(tca6416, 1);
static struct ofw_compat_data compat_data[] = {

View File

@ -521,9 +521,7 @@ static driver_t htu21_driver = {
sizeof(struct htu21_softc)
};
static devclass_t htu21_devclass;
DRIVER_MODULE(htu21, iicbus, htu21_driver, htu21_devclass, 0, 0);
DRIVER_MODULE(htu21, iicbus, htu21_driver, 0, 0);
MODULE_DEPEND(htu21, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_VERSION(htu21, 1);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -348,9 +348,8 @@ static driver_t icee_driver = {
icee_methods,
sizeof(struct icee_softc),
};
static devclass_t icee_devclass;
DRIVER_MODULE(icee, iicbus, icee_driver, icee_devclass, 0, 0);
DRIVER_MODULE(icee, iicbus, icee_driver, 0, 0);
MODULE_VERSION(icee, 1);
MODULE_DEPEND(icee, iicbus, 1, 1, 1);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -96,8 +96,6 @@ struct ic_softc {
#define IC_BUFFERS_BUSY (IC_OBUF_BUSY | IC_IFBUF_BUSY)
#define IC_BUFFER_WAITER 0x0004
static devclass_t ic_devclass;
static int icprobe(device_t);
static int icattach(device_t);
@ -435,6 +433,6 @@ icoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
return(0);
}
DRIVER_MODULE(ic, iicbus, ic_driver, ic_devclass, 0, 0);
DRIVER_MODULE(ic, iicbus, ic_driver, 0, 0);
MODULE_DEPEND(ic, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_VERSION(ic, 1);

View File

@ -74,8 +74,6 @@ static int iicuio_move(struct iic_cdevpriv *priv, struct uio *uio, int last);
static int iicuio(struct cdev *dev, struct uio *uio, int ioflag);
static int iicrdwr(struct iic_cdevpriv *priv, struct iic_rdwr_data *d, int flags);
static devclass_t iic_devclass;
static device_method_t iic_methods[] = {
/* device interface */
DEVMETHOD(device_identify, iic_identify),
@ -499,6 +497,6 @@ iicioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t
return (error);
}
DRIVER_MODULE(iic, iicbus, iic_driver, iic_devclass, 0, 0);
DRIVER_MODULE(iic, iicbus, iic_driver, 0, 0);
MODULE_DEPEND(iic, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_VERSION(iic, 1);

View File

@ -1289,8 +1289,6 @@ iichid_resume(device_t dev)
return (0);
}
static devclass_t iichid_devclass;
static device_method_t iichid_methods[] = {
DEVMETHOD(device_probe, iichid_probe),
DEVMETHOD(device_attach, iichid_attach),
@ -1323,7 +1321,7 @@ static driver_t iichid_driver = {
.size = sizeof(struct iichid_softc),
};
DRIVER_MODULE(iichid, iicbus, iichid_driver, iichid_devclass, NULL, 0);
DRIVER_MODULE(iichid, iicbus, iichid_driver, NULL, NULL);
MODULE_DEPEND(iichid, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_DEPEND(iichid, acpi, 1, 1, 1);
MODULE_DEPEND(iichid, hid, 1, 1, 1);

View File

@ -48,8 +48,6 @@ __FBSDID("$FreeBSD$");
#include "iicbus_if.h"
#include "iicoc.h"
devclass_t iicoc_devclass;
DRIVER_MODULE(iicbus, iicoc, iicbus_driver, 0, 0);
static void

View File

@ -92,8 +92,6 @@ struct iicoc_softc {
#endif
extern devclass_t iicoc_devclass;
int iicoc_iicbus_start(device_t dev, u_char slave, int timeout);
int iicoc_iicbus_stop(device_t dev);
int iicoc_iicbus_read(device_t dev, char *buf, int len, int *read, int last,

View File

@ -186,7 +186,7 @@ static driver_t iicoc_driver = {
};
SIMPLEBUS_PNP_INFO(compat_data);
DRIVER_MODULE(iicoc, simplebus, iicoc_driver, iicoc_devclass, 0, 0);
DRIVER_MODULE(iicoc, simplebus, iicoc_driver, 0, 0);
DRIVER_MODULE(ofw_iicbus, iicoc, ofw_iicbus_driver, 0, 0);
MODULE_DEPEND(iicoc, iicbus, 1, 1, 1);
MODULE_DEPEND(iicoc, ofw_iicbus, 1, 1, 1);

View File

@ -138,4 +138,4 @@ static driver_t iicoc_driver = {
sizeof(struct iicoc_softc),
};
DRIVER_MODULE(iicoc, pci, iicoc_driver, iicoc_devclass, 0, 0);
DRIVER_MODULE(iicoc, pci, iicoc_driver, 0, 0);

View File

@ -100,8 +100,6 @@ static int iicsmb_pcall(device_t dev, u_char slave, char cmd, short sdata, short
static int iicsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf);
static int iicsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf);
static devclass_t iicsmb_devclass;
static device_method_t iicsmb_methods[] = {
/* device interface */
DEVMETHOD(device_identify, iicsmb_identify),
@ -475,7 +473,7 @@ iicsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf)
return (iic2smb_error(error));
}
DRIVER_MODULE(iicsmb, iicbus, iicsmb_driver, iicsmb_devclass, 0, 0);
DRIVER_MODULE(iicsmb, iicbus, iicsmb_driver, 0, 0);
DRIVER_MODULE(smbus, iicsmb, smbus_driver, 0, 0);
MODULE_DEPEND(iicsmb, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_DEPEND(iicsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);

View File

@ -353,9 +353,8 @@ static driver_t isl12xx_driver = {
isl12xx_methods,
sizeof(struct isl12xx_softc),
};
static devclass_t isl12xx_devclass;
DRIVER_MODULE(isl12xx, iicbus, isl12xx_driver, isl12xx_devclass, NULL, NULL);
DRIVER_MODULE(isl12xx, iicbus, isl12xx_driver, NULL, NULL);
MODULE_VERSION(isl12xx, 1);
MODULE_DEPEND(isl12xx, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -120,9 +120,7 @@ static driver_t lm75_driver = {
sizeof(struct lm75_softc)
};
static devclass_t lm75_devclass;
DRIVER_MODULE(lm75, iicbus, lm75_driver, lm75_devclass, 0, 0);
DRIVER_MODULE(lm75, iicbus, lm75_driver, 0, 0);
static int
lm75_read(device_t dev, uint32_t addr, uint8_t reg, uint8_t *data, size_t len)

View File

@ -185,9 +185,7 @@ static driver_t max44009_driver = {
sizeof(struct max44009_softc)
};
static devclass_t max44009_devclass;
DRIVER_MODULE(max44009, iicbus, max44009_driver, max44009_devclass, 0, 0);
DRIVER_MODULE(max44009, iicbus, max44009_driver, 0, 0);
MODULE_DEPEND(max44009, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_VERSION(max44009, 1);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -99,9 +99,7 @@ static driver_t max6690_driver = {
sizeof(struct max6690_softc)
};
static devclass_t max6690_devclass;
DRIVER_MODULE(max6690, iicbus, max6690_driver, max6690_devclass, 0, 0);
DRIVER_MODULE(max6690, iicbus, max6690_driver, 0, 0);
static MALLOC_DEFINE(M_MAX6690, "max6690", "Temp-Monitor MAX6690");
static int

View File

@ -250,12 +250,10 @@ static device_method_t gpiomux_methods[] = {
DEVMETHOD_END
};
static devclass_t gpiomux_devclass;
DEFINE_CLASS_1(iic_gpiomux, iic_gpiomux_driver, gpiomux_methods,
sizeof(struct gpiomux_softc), iicmux_driver);
DRIVER_MODULE(iic_gpiomux, simplebus, iic_gpiomux_driver, gpiomux_devclass, 0, 0);
DRIVER_MODULE(iic_gpiomux, ofw_simplebus, iic_gpiomux_driver, gpiomux_devclass, 0, 0);
DRIVER_MODULE(iic_gpiomux, simplebus, iic_gpiomux_driver, 0, 0);
DRIVER_MODULE(iic_gpiomux, ofw_simplebus, iic_gpiomux_driver, 0, 0);
#ifdef FDT
DRIVER_MODULE(ofw_iicbus, iic_gpiomux, ofw_iicbus_driver, 0, 0);

View File

@ -241,11 +241,9 @@ static device_method_t ltc430x_methods[] = {
DEVMETHOD_END
};
static devclass_t ltc430x_devclass;
DEFINE_CLASS_1(ltc430x, ltc430x_driver, ltc430x_methods,
sizeof(struct ltc430x_softc), iicmux_driver);
DRIVER_MODULE(ltc430x, iicbus, ltc430x_driver, ltc430x_devclass, 0, 0);
DRIVER_MODULE(ltc430x, iicbus, ltc430x_driver, 0, 0);
#ifdef FDT
DRIVER_MODULE(ofw_iicbus, ltc430x, ofw_iicbus_driver, 0, 0);

View File

@ -151,10 +151,9 @@ static device_method_t pca9547_methods[] = {
DEVMETHOD_END
};
static devclass_t pca9547_devclass;
DEFINE_CLASS_1(iicmux, pca9547_driver, pca9547_methods,
sizeof(struct pca9547_softc), iicmux_driver);
DRIVER_MODULE(pca_iicmux, iicbus, pca9547_driver, pca9547_devclass, 0, 0);
DRIVER_MODULE(pca_iicmux, iicbus, pca9547_driver, 0, 0);
DRIVER_MODULE(iicbus, iicmux, iicbus_driver, 0, 0);
DRIVER_MODULE(ofw_iicbus, iicmux, ofw_iicbus_driver, 0, 0);
MODULE_DEPEND(pca9547, iicmux, 1, 1, 1);

View File

@ -193,11 +193,9 @@ static device_method_t pca954x_methods[] = {
DEVMETHOD_END
};
static devclass_t pca954x_devclass;
DEFINE_CLASS_1(pca9548, pca954x_driver, pca954x_methods,
sizeof(struct pca954x_softc), iicmux_driver);
DRIVER_MODULE(pca9548, iicbus, pca954x_driver, pca954x_devclass, 0, 0);
DRIVER_MODULE(pca9548, iicbus, pca954x_driver, 0, 0);
#ifdef FDT
DRIVER_MODULE(ofw_iicbus, pca9548, ofw_iicbus_driver, 0, 0);

View File

@ -1012,9 +1012,7 @@ static driver_t nxprtc_driver = {
sizeof(struct nxprtc_softc),
};
static devclass_t nxprtc_devclass;
DRIVER_MODULE(nxprtc, iicbus, nxprtc_driver, nxprtc_devclass, NULL, NULL);
DRIVER_MODULE(nxprtc, iicbus, nxprtc_driver, NULL, NULL);
MODULE_VERSION(nxprtc, 1);
MODULE_DEPEND(nxprtc, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -258,9 +258,7 @@ static driver_t pcf8591_driver = {
sizeof(struct pcf8591_softc)
};
static devclass_t pcf8591_devclass;
DRIVER_MODULE(pcf8591, iicbus, pcf8591_driver, pcf8591_devclass, 0, 0);
DRIVER_MODULE(pcf8591, iicbus, pcf8591_driver, 0, 0);
MODULE_DEPEND(pcf8591, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
MODULE_VERSION(pcf8591, 1);
#ifdef FDT

View File

@ -247,12 +247,11 @@ static device_method_t act8846_methods[] = {
DEVMETHOD_END
};
static devclass_t act8846_devclass;
static DEFINE_CLASS_0(act8846_pmu, act8846_driver, act8846_methods,
sizeof(struct act8846_softc));
EARLY_DRIVER_MODULE(act8846_pmic, iicbus, act8846_driver, act8846_devclass,
EARLY_DRIVER_MODULE(act8846_pmic, iicbus, act8846_driver,
NULL, NULL, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
MODULE_VERSION(act8846_pmic, 1);
MODULE_DEPEND(act8846_pmic, iicbus, IICBUS_MINVER, IICBUS_PREFVER,
IICBUS_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -466,12 +466,10 @@ static device_method_t fan53555_methods[] = {
DEVMETHOD_END
};
static devclass_t fan53555_devclass;
static DEFINE_CLASS_0(fan53555_pmic, fan53555_driver, fan53555_methods,
sizeof(struct fan53555_softc));
EARLY_DRIVER_MODULE(fan53555, iicbus, fan53555_driver, fan53555_devclass, 0, 0,
BUS_PASS_RESOURCE);
EARLY_DRIVER_MODULE(fan53555, iicbus, fan53555_driver, 0, 0, BUS_PASS_RESOURCE);
MODULE_VERSION(fan53555, 1);
MODULE_DEPEND(fan53555, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -192,9 +192,7 @@ static device_method_t rk805_methods[] = {
DEFINE_CLASS_1(rk805_pmu, rk805_driver, rk805_methods,
sizeof(struct rk8xx_softc), rk8xx_driver);
static devclass_t rk805_devclass;
EARLY_DRIVER_MODULE(rk805_pmu, iicbus, rk805_driver, rk805_devclass, 0, 0,
EARLY_DRIVER_MODULE(rk805_pmu, iicbus, rk805_driver, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
EARLY_DRIVER_MODULE(iicbus, rk805_pmu, iicbus_driver, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);

View File

@ -267,9 +267,7 @@ static device_method_t rk808_methods[] = {
DEFINE_CLASS_1(rk808_pmu, rk808_driver, rk808_methods,
sizeof(struct rk8xx_softc), rk8xx_driver);
static devclass_t rk808_devclass;
EARLY_DRIVER_MODULE(rk808_pmu, iicbus, rk808_driver, rk808_devclass, 0, 0,
EARLY_DRIVER_MODULE(rk808_pmu, iicbus, rk808_driver, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
EARLY_DRIVER_MODULE(iicbus, rk808_pmu, iicbus_driver, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);

View File

@ -305,10 +305,9 @@ static device_method_t hym8563_methods[] = {
DEVMETHOD_END,
};
static devclass_t hym8563_devclass;
static DEFINE_CLASS_0(hym8563_rtc, hym8563_driver, hym8563_methods,
sizeof(struct hym8563_softc));
DRIVER_MODULE(hym8563, iicbus, hym8563_driver, hym8563_devclass, NULL, NULL);
DRIVER_MODULE(hym8563, iicbus, hym8563_driver, NULL, NULL);
MODULE_VERSION(hym8563, 1);
MODULE_DEPEND(hym8563, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -271,7 +271,5 @@ static driver_t pcf85063_driver = {
0
};
static devclass_t pcf85063_devclass;
DRIVER_MODULE(pcf85063, iicbus, pcf85063_driver, pcf85063_devclass, NULL, NULL);
DRIVER_MODULE(pcf85063, iicbus, pcf85063_driver, NULL, NULL);
IICBUS_FDT_PNP_INFO(pcf85063_compat_data);

View File

@ -237,7 +237,5 @@ static driver_t rx8803_driver = {
0, /* We don't need softc for this one. */
};
static devclass_t rx8803_devclass;
DRIVER_MODULE(rx8803, iicbus, rx8803_driver, rx8803_devclass, NULL, NULL);
DRIVER_MODULE(rx8803, iicbus, rx8803_driver, NULL, NULL);
MODULE_DEPEND(rx8803, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);

View File

@ -297,9 +297,8 @@ static driver_t rtc8583_driver = {
rtc8583_methods,
sizeof(struct rtc8583_softc),
};
static devclass_t rtc8583_devclass;
DRIVER_MODULE(rtc8583, iicbus, rtc8583_driver, rtc8583_devclass, NULL, NULL);
DRIVER_MODULE(rtc8583, iicbus, rtc8583_driver, NULL, NULL);
MODULE_VERSION(rtc8583, 1);
MODULE_DEPEND(rtc8583, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -363,8 +363,7 @@ static driver_t s390rtc_driver = {
s390rtc_methods,
sizeof(struct s390rtc_softc),
};
static devclass_t s390rtc_devclass;
DRIVER_MODULE(s35390a, iicbus, s390rtc_driver, s390rtc_devclass, NULL, NULL);
DRIVER_MODULE(s35390a, iicbus, s390rtc_driver, NULL, NULL);
MODULE_VERSION(s35390a, 1);
MODULE_DEPEND(s35390a, iicbus, 1, 1, 1);

View File

@ -293,10 +293,7 @@ static driver_t sy8106a_driver = {
sizeof(struct sy8106a_softc),
};
static devclass_t sy8106a_devclass;
EARLY_DRIVER_MODULE(sy8106a, iicbus, sy8106a_driver, sy8106a_devclass, 0, 0,
BUS_PASS_RESOURCE);
EARLY_DRIVER_MODULE(sy8106a, iicbus, sy8106a_driver, 0, 0, BUS_PASS_RESOURCE);
MODULE_VERSION(sy8106a, 1);
MODULE_DEPEND(sy8106a, iicbus, 1, 1, 1);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -317,10 +317,7 @@ static driver_t syr827_driver = {
sizeof(struct syr827_softc),
};
static devclass_t syr827_devclass;
EARLY_DRIVER_MODULE(syr827, iicbus, syr827_driver, syr827_devclass, 0, 0,
BUS_PASS_RESOURCE);
EARLY_DRIVER_MODULE(syr827, iicbus, syr827_driver, 0, 0, BUS_PASS_RESOURCE);
MODULE_VERSION(syr827, 1);
MODULE_DEPEND(syr827, iicbus, 1, 1, 1);
IICBUS_FDT_PNP_INFO(compat_data);

View File

@ -79,14 +79,12 @@ static driver_t tmp461_driver = {
0
};
static devclass_t tmp461_devclass;
static struct ofw_compat_data tmp461_compat_data[] = {
{ "ti,tmp461", 1 },
{ NULL, 0 }
};
DRIVER_MODULE(tmp461, iicbus, tmp461_driver, tmp461_devclass, 0, 0);
DRIVER_MODULE(tmp461, iicbus, tmp461_driver, 0, 0);
IICBUS_FDT_PNP_INFO(tmp461_compat_data);
static int

View File

@ -147,9 +147,7 @@ static device_method_t a10_twsi_methods[] = {
DEFINE_CLASS_1(iichb, a10_twsi_driver, a10_twsi_methods,
sizeof(struct twsi_softc), twsi_driver);
static devclass_t a10_twsi_devclass;
EARLY_DRIVER_MODULE(a10_twsi, simplebus, a10_twsi_driver, a10_twsi_devclass,
EARLY_DRIVER_MODULE(a10_twsi, simplebus, a10_twsi_driver,
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
EARLY_DRIVER_MODULE(iicbus, a10_twsi, iicbus_driver,
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);

View File

@ -118,9 +118,7 @@ static device_method_t mv_twsi_methods[] = {
DEFINE_CLASS_1(twsi, mv_twsi_driver, mv_twsi_methods,
sizeof(struct twsi_softc), twsi_driver);
static devclass_t mv_twsi_devclass;
DRIVER_MODULE(twsi, simplebus, mv_twsi_driver, mv_twsi_devclass, 0, 0);
DRIVER_MODULE(twsi, simplebus, mv_twsi_driver, 0, 0);
DRIVER_MODULE(iicbus, twsi, iicbus_driver, 0, 0);
MODULE_DEPEND(twsi, iicbus, 1, 1, 1);
SIMPLEBUS_PNP_INFO(compat_data);