svn commit: r277655 - head/sys/dev/fdt
Ian Lepore
ian at FreeBSD.org
Sat Jan 24 20:18:38 UTC 2015
Author: ian
Date: Sat Jan 24 20:18:37 2015
New Revision: 277655
URL: https://svnweb.freebsd.org/changeset/base/277655
Log:
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
Modified:
head/sys/dev/fdt/fdt_clock.c
Modified: head/sys/dev/fdt/fdt_clock.c
==============================================================================
--- head/sys/dev/fdt/fdt_clock.c Sat Jan 24 20:16:34 2015 (r277654)
+++ head/sys/dev/fdt/fdt_clock.c Sat Jan 24 20:18:37 2015 (r277655)
@@ -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
More information about the svn-src-all
mailing list