diff mbox series

[08/25] hw/chiptod: Fix dt props to include comma before string

Message ID 20170905055202.8216-9-joel@jms.id.au
State Accepted
Headers show
Series Checkpatch fixes | expand

Commit Message

Joel Stanley Sept. 5, 2017, 5:51 a.m. UTC
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 hw/chiptod.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/hw/chiptod.c b/hw/chiptod.c
index 1713f248d458..1ade6f66b925 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;
 		}