diff options
author | Lucas Stach <dev@lynxeye.de> | 2013-12-03 20:56:54 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-12-04 14:59:39 +0100 |
commit | 87b651ed890ef14e6b084aa41aab15bce801fc97 (patch) | |
tree | 782b531f9dd976a3d258869aff4af5a9ce61ec2b /drivers/of/of_gpio.c | |
parent | fbf502a9c2a1b88e0ad00be0c675bc1f69d3b839 (diff) | |
download | barebox-87b651ed890ef14e6b084aa41aab15bce801fc97.tar.gz barebox-87b651ed890ef14e6b084aa41aab15bce801fc97.tar.xz |
gpio: reduce noise when parsing DT
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>
Diffstat (limited to 'drivers/of/of_gpio.c')
-rw-r--r-- | drivers/of/of_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/of_gpio.c b/drivers/of/of_gpio.c index 3afdf0d092..1370d8fe1f 100644 --- a/drivers/of/of_gpio.c +++ b/drivers/of/of_gpio.c @@ -25,7 +25,7 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname, ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index, &out_args); if (ret) { - pr_err("%s: cannot parse %s property: %d\n", + pr_debug("%s: cannot parse %s property: %d\n", __func__, propname, ret); return ret; } |