summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-05-14 14:46:45 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-29 16:47:17 +0200
commitb50ac721f97ccdd0a182cb0522a999a5663c59dc (patch)
tree8a93d1da53f2b8f11327d563a3f1ab9479181bc8 /arch
parentb71e27287b40b38d6eebcc6b83d6cd89b36be8f0 (diff)
tegra12_clocks.c: fix unusual comparision
newer compilers throw the following error: arch/arm/mach-tegra/tegra12_clocks.c: In function 'tegra12_cpu_clk_init': arch/arm/mach-tegra/tegra12_clocks.c:1334: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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/tegra12_clocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra12_clocks.c b/arch/arm/mach-tegra/tegra12_clocks.c
index bb738a86b51a..0546bd6a6c1c 100644
--- a/arch/arm/mach-tegra/tegra12_clocks.c
+++ b/arch/arm/mach-tegra/tegra12_clocks.c
@@ -1331,7 +1331,7 @@ static struct clk_ops tegra13_super_cclk_ops = {
*/
static void tegra12_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 tegra12_cpu_clk_enable(struct clk *c)