|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V1 10/29] xen/dts: Remove device_get_reg call in process_cpu_node
On 09/06/2013 05:36 PM, Ian Campbell wrote: On Wed, 2013-08-28 at 15:47 +0100, Julien Grall wrote:The "reg" property is only composed of one uint32. device_get_reg can be replaced by dt_read_number. Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Although I notice Linux has helpers like dt_property_read_u32 etc. Would be useful for us too I suppose? The device tree API already have dt_property_read_u32. It was added by Chen a couple of weeks ago. But this function only works with the device tree structure. Here, we are using the flat device tree, because the memory layout has not yet been setup (so no possibility to allocate memory for the structure).
-- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |