summaryrefslogtreecommitdiffstats
path: root/sys/arm/altera
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-01-31 12:17:07 +0000
committerloos <loos@FreeBSD.org>2015-01-31 12:17:07 +0000
commita2924f5feeb568dc5a1dc2b53be66542d8825e87 (patch)
tree32cccced059cc9d62c6880a990ae89819afccc09 /sys/arm/altera
parent4b26a78e587bd62c2b734d552d2ec5a699e6d93f (diff)
downloadFreeBSD-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.c1
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);
}
OpenPOWER on IntegriCloud