summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_gpio.c
Commit message (Collapse)AuthorAgeFilesLines
* OF: gpio: Silence error message on -EPROBE_DEFERSebastian Hesselbarth2015-04-171-3/+5
| | | | | | | With deferred probing, -EPROBE_DEFER is not worth spilling an error. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* of_gpio: return error if no device foundSascha Hauer2014-04-091-3/+3
| | | | | | | of_get_named_gpio_flags used to return 'ret' when no device is found, but 'ret' is zero here. Return an error instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gpio: reduce noise when parsing DTLucas Stach2013-12-041-1/+1
| | | | | | | | | Some GPIOs are optional, so it might not be an error if we can not find a DT property. Do the same thing as the Linux kernel and only print a debug message not an error. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* OF: gpio: convert DT based gpio handling to new OF APISebastian Hesselbarth2013-07-051-0/+52
This creates a Linux OF API compatible counterpart of of_get_named_gpio_flags. Existing of_get_named_gpio is converted to a static inline function, which is in the corresponding of_gpio.h include. While at it, drivers/of/gpio.c is also renamed to drivers/of/of_gpio.c to follow the of_ prefix naming scheme. The new include is also added to existing users of of_get_named_gpio. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>