diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-11-17 18:05:19 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-12-21 16:56:17 +1100 |
commit | 5413f5c9a1c3183711f1062ff19dfda39cfb711f (patch) | |
tree | a3bfbee85fcfa92c1ea02c862f3e6821c1a91762 /hdata/memory.c | |
parent | 77be3339fba1ea188b19bde5c4199b63c9024a30 (diff) | |
download | skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.zip skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.tar.gz skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.tar.bz2 |
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 <oohall@gmail.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/memory.c')
-rw-r--r-- | hdata/memory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hdata/memory.c b/hdata/memory.c index a8b9955..c608091 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -225,9 +225,8 @@ static void add_bus_freq_to_ram_area(struct dt_node *ram_node, u32 chip_id) return; } - freq = ((u64)be32_to_cpu(timebase->memory_bus_frequency)) *1000000ul; - dt_add_property_cells(ram_node, "ibm,memory-bus-frequency", hi32(freq), - lo32(freq)); + freq = ((u64)be32_to_cpu(timebase->memory_bus_frequency)) * 1000000ul; + dt_add_property_u64(ram_node, "ibm,memory-bus-frequency", freq); } static void add_size_to_ram_area(struct dt_node *ram_node, |