diff options
author | loos <loos@FreeBSD.org> | 2015-01-31 12:17:07 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2015-01-31 12:17:07 +0000 |
commit | a2924f5feeb568dc5a1dc2b53be66542d8825e87 (patch) | |
tree | 32cccced059cc9d62c6880a990ae89819afccc09 /sys/arm/altera | |
parent | 4b26a78e587bd62c2b734d552d2ec5a699e6d93f (diff) | |
download | FreeBSD-src-a2924f5feeb568dc5a1dc2b53be66542d8825e87.zip FreeBSD-src-a2924f5feeb568dc5a1dc2b53be66542d8825e87.tar.gz |
Clean up and fix the device detach routine and the failure path on GPIO
drivers.
This paves the way for upcoming work.
Diffstat (limited to 'sys/arm/altera')
-rw-r--r-- | sys/arm/altera/socfpga/socfpga_gpio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/altera/socfpga/socfpga_gpio.c b/sys/arm/altera/socfpga/socfpga_gpio.c index 196c1e9..1a50c7c 100644 --- a/sys/arm/altera/socfpga/socfpga_gpio.c +++ b/sys/arm/altera/socfpga/socfpga_gpio.c @@ -163,6 +163,7 @@ socfpga_gpio_attach(device_t dev) if (bus_alloc_resources(dev, socfpga_gpio_spec, sc->res)) { device_printf(dev, "could not allocate resources\n"); + mtx_destroy(&sc->sc_mtx); return (ENXIO); } |