From a2924f5feeb568dc5a1dc2b53be66542d8825e87 Mon Sep 17 00:00:00 2001 From: loos Date: Sat, 31 Jan 2015 12:17:07 +0000 Subject: Clean up and fix the device detach routine and the failure path on GPIO drivers. This paves the way for upcoming work. --- sys/arm/freescale/vybrid/vf_gpio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/arm/freescale/vybrid/vf_gpio.c') diff --git a/sys/arm/freescale/vybrid/vf_gpio.c b/sys/arm/freescale/vybrid/vf_gpio.c index a31ff78..1fcf329 100644 --- a/sys/arm/freescale/vybrid/vf_gpio.c +++ b/sys/arm/freescale/vybrid/vf_gpio.c @@ -125,6 +125,7 @@ vf_gpio_attach(device_t dev) if (bus_alloc_resources(dev, vf_gpio_spec, sc->res)) { device_printf(dev, "could not allocate resources\n"); + mtx_destroy(&sc->sc_mtx); return (ENXIO); } -- cgit v1.1