aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2017-09-05 15:51:45 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-09-05 17:55:59 +1000
commit65faec82334a8975884be7d1b8777e1c83ac56f3 (patch)
tree9193ba271c9b4a3c3646fb3c434161c4ee5523c3
parent41a712b3fe0f73043eb3c134e34e43f682417149 (diff)
downloadskiboot-65faec82334a8975884be7d1b8777e1c83ac56f3.zip
skiboot-65faec82334a8975884be7d1b8777e1c83ac56f3.tar.gz
skiboot-65faec82334a8975884be7d1b8777e1c83ac56f3.tar.bz2
hw/chiptod: Fix dt props to include comma before string
Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Michael Neuling <mikey@neuling.org> Reviewed-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/chiptod.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/chiptod.c b/hw/chiptod.c
index 1713f24..1ade6f6 100644
--- a/hw/chiptod.c
+++ b/hw/chiptod.c
@@ -503,8 +503,8 @@ static void chiptod_setup_base_tfmr(void)
base_tfmr = SPR_TFMR_TB_ECLIPZ;
/* Get CPU and TOD freqs in Hz */
- if (dt_has_node_property(cpu,"ibm,extended-clock-frequency", NULL))
- core_freq = dt_prop_get_u64(cpu,"ibm,extended-clock-frequency");
+ if (dt_has_node_property(cpu, "ibm,extended-clock-frequency", NULL))
+ core_freq = dt_prop_get_u64(cpu, "ibm,extended-clock-frequency");
else
core_freq = dt_prop_get_u32(cpu, "clock-frequency");
tod_freq = 32000000;
@@ -1608,11 +1608,11 @@ static bool chiptod_probe(void)
if (dt_has_node_property(np, "primary", NULL)) {
chiptod_primary = chip;
- if (dt_node_is_compatible(np,"ibm,power7-chiptod"))
+ if (dt_node_is_compatible(np, "ibm,power7-chiptod"))
chiptod_type = chiptod_p7;
- if (dt_node_is_compatible(np,"ibm,power8-chiptod"))
+ if (dt_node_is_compatible(np, "ibm,power8-chiptod"))
chiptod_type = chiptod_p8;
- if (dt_node_is_compatible(np,"ibm,power9-chiptod"))
+ if (dt_node_is_compatible(np, "ibm,power9-chiptod"))
chiptod_type = chiptod_p9;
}