Do not warn if the 'assigned-clock-parents' property does not exists.

MFC after:	2 weeks
This commit is contained in:
Emmanuel Vadot 2016-11-08 10:05:11 +00:00
parent dd3dde9828
commit ad6d341799

View File

@ -1205,7 +1205,9 @@ clk_set_assigned(device_t dev, phandle_t node)
"assigned-clock-parents", "#clock-cells", &nclocks);
if (error != 0) {
device_printf(dev, "cannot parse assigned-clock-parents property\n");
if (error != ENOENT)
device_printf(dev,
"cannot parse assigned-clock-parents property\n");
return (error);
}