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:
parent
fbf502a9c2
commit
87b651ed89
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue