Date: Sat, 24 Jan 2015 20:18:38 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r277655 - head/sys/dev/fdt Message-ID: <201501242018.t0OKIc1o069293@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501242018.t0OKIc1o069293>