summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-05-14 14:46:45 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-21 11:27:48 +0100
commit2f264a761f0949e18b28ea9f812a90e955c0a3ce (patch)
tree55d443a2f1bdf8333b45d187187450518e9afc7b
parentc43b2f4952d0c4f3ff85f4da8da4fb15e958cd54 (diff)
tegra3_clocks.c: fix unusual comparision
newer compilers throw the following error: tegra3_clocks.c:820:31: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] | c->state = (!is_lp_cluster() == (c->u.cpu.mode == MODE_G))? ON : OFF; | ^ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--arch/arm/mach-tegra/tegra3_clocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra3_clocks.c b/arch/arm/mach-tegra/tegra3_clocks.c
index eaacad3d3396..5044793fd9ee 100644
--- a/arch/arm/mach-tegra/tegra3_clocks.c
+++ b/arch/arm/mach-tegra/tegra3_clocks.c
@@ -817,7 +817,7 @@ static struct clk tegra3_clk_twd = {
*/
static void tegra3_cpu_clk_init(struct clk *c)
{
- c->state = (!is_lp_cluster() == (c->u.cpu.mode == MODE_G))? ON : OFF;
+ c->state = ((!is_lp_cluster()) == (c->u.cpu.mode == MODE_G))? ON : OFF;
}
static int tegra3_cpu_clk_enable(struct clk *c)