summaryrefslogtreecommitdiffstats
path: root/core/console.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-11-17 18:05:19 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-21 16:56:17 +1100
commit5413f5c9a1c3183711f1062ff19dfda39cfb711f (patch)
treea3bfbee85fcfa92c1ea02c862f3e6821c1a91762 /core/console.c
parent77be3339fba1ea188b19bde5c4199b63c9024a30 (diff)
downloadtalos-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/console.c')
-rw-r--r--core/console.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/console.c b/core/console.c
index f76ed402..7eac801e 100644
--- a/core/console.c
+++ b/core/console.c
@@ -324,10 +324,7 @@ void set_console(struct con_ops *driver)
void memcons_add_properties(void)
{
- uint64_t addr = (u64)&memcons;
-
- dt_add_property_cells(opal_node, "ibm,opal-memcons",
- hi32(addr), lo32(addr));
+ dt_add_property_u64(opal_node, "ibm,opal-memcons", (u64) &memcons);
}
/*
OpenPOWER on IntegriCloud