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:
parent
56638eb686
commit
fb45ca12a7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user