diff options
author | hrs <hrs@FreeBSD.org> | 2012-08-18 11:33:21 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2012-08-18 11:33:21 +0000 |
commit | f0910a12055340d57655f9bfdbebe552c8889a8a (patch) | |
tree | 623af9f506c43843216d93f6c6648bf8764f7255 /sys/arm/mv/gpio.c | |
parent | 5320d21e5403e54eded0635a6f0ac20db93b0467 (diff) | |
download | FreeBSD-src-f0910a12055340d57655f9bfdbebe552c8889a8a.zip FreeBSD-src-f0910a12055340d57655f9bfdbebe552c8889a8a.tar.gz |
Fix a bug that could fail to initialize GPIO pins specified in "gpios" because
"gpio-controller" property at the controller node was always ignored.
Diffstat (limited to 'sys/arm/mv/gpio.c')
-rw-r--r-- | sys/arm/mv/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/gpio.c b/sys/arm/mv/gpio.c index 7e4ae53..c87bfd5 100644 --- a/sys/arm/mv/gpio.c +++ b/sys/arm/mv/gpio.c @@ -547,7 +547,7 @@ mv_handle_gpios_prop(phandle_t ctrl, pcell_t *gpios, int len) struct mv_gpio_softc sc; pincnt = 0; - if (OF_getproplen(ctrl, "gpio-controller") <= 0) + if (!OF_hasprop(ctrl, "gpio-controller")) /* Node is not a GPIO controller. */ return (ENXIO); |