diff options
Diffstat (limited to 'sys/dev/iicbus/iic.c')
-rw-r--r-- | sys/dev/iicbus/iic.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index 9dd1431..28339fa 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -122,15 +122,9 @@ iic_attach(device_t dev) { struct iic_softc *sc = (struct iic_softc *)device_get_softc(dev); - if (!sc) - return (ENOMEM); - - bzero(sc, sizeof(struct iic_softc)); - sc->sc_devnode = make_dev(&iic_cdevsw, device_get_unit(dev), UID_ROOT, GID_WHEEL, 0600, "iic%d", device_get_unit(dev)); - return (0); } @@ -146,7 +140,7 @@ iic_detach(device_t dev) } static int -iicopen (struct cdev *dev, int flags, int fmt, struct thread *td) +iicopen(struct cdev *dev, int flags, int fmt, struct thread *td) { struct iic_softc *sc = IIC_SOFTC(minor(dev)); |