summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2016-11-09 12:00:46 +0100
committerStephen Boyd <sboyd@codeaurora.org>2016-11-09 21:05:50 +0100
commit295face99be9c1a214c2a80c2c6a889dbff5e1cf (patch)
tree19852183e10f4ee8b07d4db74a4ba1888d528bc2 /drivers
parentclk: pxa: fix pxa2xx_determine_rate return (diff)
downloadlinux-295face99be9c1a214c2a80c2c6a889dbff5e1cf.tar.xz
linux-295face99be9c1a214c2a80c2c6a889dbff5e1cf.zip
clk: gate: fix coding style
The : of the ?: operator should have a leading space. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [sboyd@codeaurora.org: Also remove useless parenthesis] Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/clk-gate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c
index 4e691e35483a..4e0c054a787c 100644
--- a/drivers/clk/clk-gate.c
+++ b/drivers/clk/clk-gate.c
@@ -145,8 +145,8 @@ struct clk_hw *clk_hw_register_gate(struct device *dev, const char *name,
init.name = name;
init.ops = &clk_gate_ops;
init.flags = flags | CLK_IS_BASIC;
- init.parent_names = (parent_name ? &parent_name: NULL);
- init.num_parents = (parent_name ? 1 : 0);
+ init.parent_names = parent_name ? &parent_name : NULL;
+ init.num_parents = parent_name ? 1 : 0;
/* struct clk_gate assignments */
gate->reg = reg;