9
0
Fork 0

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>
This commit is contained in:
Lucas Stach 2013-12-03 20:56:54 +01:00 committed by Sascha Hauer
parent fbf502a9c2
commit 87b651ed89
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}