Author: adrian Date: Tue Dec 20 03:25:11 2011 New Revision: 228729 URL: http://svn.freebsd.org/changeset/base/228729
Log: Fix broken locking that I introduced in the previous commit. Modified: head/sys/dev/gpio/gpioiic.c Modified: head/sys/dev/gpio/gpioiic.c ============================================================================== --- head/sys/dev/gpio/gpioiic.c Tue Dec 20 02:49:01 2011 (r228728) +++ head/sys/dev/gpio/gpioiic.c Tue Dec 20 03:25:11 2011 (r228729) @@ -203,11 +203,13 @@ gpioiic_reset(device_t dev, u_char speed { struct gpioiic_softc *sc = device_get_softc(dev); + GPIOBUS_LOCK_BUS(sc->sc_busdev); GPIOBUS_ACQUIRE_BUS(sc->sc_busdev, sc->sc_dev); gpioiic_reset_bus(sc->sc_dev); GPIOBUS_RELEASE_BUS(sc->sc_busdev, sc->sc_dev); + GPIOBUS_UNLOCK_BUS(sc->sc_busdev); return (IIC_ENOADDR); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"