aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/gpio/ofw_gpiobus.c
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2015-03-05 03:11:47 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2015-03-05 03:11:47 +0000
commit6153d465151113fae30d41bb2af9f77d813eea6f (patch)
treeb22dbe2d9b1bfd6cb7d2abcc75c429e4642dd081 /sys/dev/gpio/ofw_gpiobus.c
parent6ad7f491523ad37dbef9137d410a7af56ab990e6 (diff)
downloadsrc-6153d465151113fae30d41bb2af9f77d813eea6f.tar.gz
src-6153d465151113fae30d41bb2af9f77d813eea6f.zip
Use the child device name here is lame because at the point that this
happens, the child device is not yet specified.
Notes
Notes: svn path=/head/; revision=279622
Diffstat (limited to 'sys/dev/gpio/ofw_gpiobus.c')
-rw-r--r--sys/dev/gpio/ofw_gpiobus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/gpio/ofw_gpiobus.c b/sys/dev/gpio/ofw_gpiobus.c
index 3eb6b860d4c5..da72d4dfed20 100644
--- a/sys/dev/gpio/ofw_gpiobus.c
+++ b/sys/dev/gpio/ofw_gpiobus.c
@@ -282,8 +282,7 @@ ofw_gpiobus_parse_gpios_impl(device_t consumer, phandle_t cnode, char *pname,
goto fail;
}
/* Reserve the GPIO pin. */
- if (gpiobus_map_pin(bussc->sc_busdev, consumer,
- (*pins)[j].pin) != 0)
+ if (gpiobus_map_pin(bussc->sc_busdev, (*pins)[j].pin) != 0)
goto fail;
j++;
i += gpiocells + 1;