From 5413f5c9a1c3183711f1062ff19dfda39cfb711f Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Thu, 17 Nov 2016 18:05:19 +1100 Subject: tree-wide: use dt_add_property_u64s() where we can A few places (mostly old code) were using: add_property_cells(hi32(number), lo32(number)); This patch converts them to use the helper rather than doing it manually. Signed-off-by: Oliver O'Halloran Reviewed-by: Vasant Hegde Signed-off-by: Stewart Smith --- hdata/cpu-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hdata/cpu-common.c') diff --git a/hdata/cpu-common.c b/hdata/cpu-common.c index cf0ce8ae..491eab84 100644 --- a/hdata/cpu-common.c +++ b/hdata/cpu-common.c @@ -104,8 +104,7 @@ struct dt_node * add_core_common(struct dt_node *cpus, freq = ((uint64_t)be32_to_cpu(tb->actual_clock_speed)) * 1000000ul; if (freq <= 0xfffffffful) dt_add_property_cells(cpu, "clock-frequency", freq); - dt_add_property_cells(cpu, "ibm,extended-clock-frequency", - hi32(freq), lo32(freq)); + dt_add_property_u64(cpu, "ibm,extended-clock-frequency", freq); /* FIXME: Hardcoding is bad. */ dt_add_property_cells(cpu, "timebase-frequency", 512000000); -- cgit v1.2.1