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 /core/opal.c | |
parent | 77be3339fba1ea188b19bde5c4199b63c9024a30 (diff) | |
download | talos-skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.tar.gz talos-skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.zip |
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 'core/opal.c')
-rw-r--r-- | core/opal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/opal.c b/core/opal.c index 269ab80d..1d15abea 100644 --- a/core/opal.c +++ b/core/opal.c @@ -129,9 +129,7 @@ static void add_opal_firmware_node(void) dt_add_property_string(firmware, "compatible", "ibm,opal-firmware"); dt_add_property_string(firmware, "name", "firmware"); dt_add_property_string(firmware, "version", version); - dt_add_property_cells(firmware, "symbol-map", - hi32(sym_start), lo32(sym_start), - hi32(sym_size), lo32(sym_size)); + dt_add_property_u64s(firmware, "symbol-map", sym_start, sym_size); } void add_opal_node(void) |