diff options
author | peter <peter@FreeBSD.org> | 1999-10-04 15:53:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-10-04 15:53:08 +0000 |
commit | 4d689ed6f470dd1240dd8499d4ff66625c854328 (patch) | |
tree | 8be3f1943c25a1abcd186465194dd5b166290863 | |
parent | 45a8689a21f6bac031a2c90410efed28aa6955d4 (diff) | |
download | FreeBSD-src-4d689ed6f470dd1240dd8499d4ff66625c854328.zip FreeBSD-src-4d689ed6f470dd1240dd8499d4ff66625c854328.tar.gz |
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.
-rw-r--r-- | sys/dev/iicbus/iic.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index de490b7..b1a6bac 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -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); |