]> Pileus Git - ~andy/linux/commit
w1-gpio: Detect of_gpio_error for first gpio
authorMarkus Pargmann <mpa@pengutronix.de>
Tue, 29 Oct 2013 08:19:23 +0000 (09:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 23:58:18 +0000 (16:58 -0700)
commit7cf1a122b2f3bda5af837a2dbd7564f695301af0
treefad1ce6ff0303e49852d15ce958cc7f10e31c341
parente6418fcc8adaa5c3911295cbe7ddd368b9788616
w1-gpio: Detect of_gpio_error for first gpio

The first DT gpio is necessary for this driver, but errors returned for
of_get_gpio are ignored.

This patch adds a return value check for the first of_get_gpio.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/w1-gpio.c