Reimplement fdt_clock_register_provider() correctly. It turns out you

can't use OF_xref_from_device() to implement the function that registers
the xref association with the device.

Pointy hat:	     ian
Submitted by:	     loos
This commit is contained in:
ian 2015-01-24 20:18:37 +00:00
parent 6132573ef1
commit b2d128e87b

View File

@ -149,7 +149,8 @@ void
fdt_clock_register_provider(device_t provider)
{
OF_device_register_xref(OF_xref_from_device(provider), provider);
OF_device_register_xref(
OF_xref_from_node(ofw_bus_get_node(provider)), provider);
}
void