mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-24 01:57:06 +01:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51936
@ -116,10 +116,6 @@ static int
|
|||||||
iic_probe(device_t dev)
|
iic_probe(device_t dev)
|
||||||
{
|
{
|
||||||
struct iic_softc *sc = (struct iic_softc *)device_get_softc(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);
|
sc->sc_addr = iicbus_get_addr(dev);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user