Do not fail to attach the clock if we cannot set the assigned parents as this

property isn't mandatory.

MFC after:	2 weeks
This commit is contained in:
Emmanuel Vadot 2016-11-08 10:06:43 +00:00
parent ad6d341799
commit 328dd395ba

View File

@ -351,7 +351,7 @@ aw_ahbclk_attach(device_t dev)
}
error = clk_set_assigned(dev, node);
if (error != 0) {
if (error != 0 && error != ENOENT) {
device_printf(dev, "cannot set assigned parents: %d\n", error);
goto fail;
}