gpiolib: fix of_hog_gpio gpio label assignment
Current the label is retrieved by the line-name property but this is a
optional property. In case of a missing line-name property the label is
NULL. As the binding documentation told, the gpio-label must be set to
the device-node name in case of missing line-name property.

Fixes: 37e6bee7e5 ("gpiolib: Add support for GPIO "hog" nodes")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 94d60ed commit d023a038222db319d5d56b471ba76581fdb3b269
@Marco Felsch Marco Felsch authored on 18 Oct 2018
Sascha Hauer committed on 19 Oct 2018
Showing 1 changed file
View
drivers/gpio/gpiolib.c