Fix: WARNING: "iic" is usurping "iic"'s cdevsw[] - the DEV_DRIVER_MODULE()

takes care of the cdevsw_add() - it doesn't need to be done twice.
This commit is contained in:
Peter Wemm 1999-10-04 15:53:08 +00:00
parent 56638eb686
commit fb45ca12a7

View File

@ -116,10 +116,6 @@ static int
iic_probe(device_t dev)
{
struct iic_softc *sc = (struct iic_softc *)device_get_softc(dev);
static int once;
if (!once++)
cdevsw_add(&iic_cdevsw);
sc->sc_addr = iicbus_get_addr(dev);