1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fix broken locking that I introduced in the previous commit.

This commit is contained in:
Adrian Chadd 2011-12-20 03:25:11 +00:00
parent fd06fec782
commit 74ab90b71e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228729

View File

@ -203,11 +203,13 @@ gpioiic_reset(device_t dev, u_char speed, u_char addr, u_char *oldaddr)
{
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);
}