diff options
author | Andrew Chew <achew@nvidia.com> | 2012-10-31 16:59:30 -0700 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2012-12-05 12:32:15 -0800 |
commit | 7da5cecd4eb9a7771a75e754c87e21cad2d4e26d (patch) | |
tree | 7584e1669414717427b31fe7dcf17b538fb3e174 /arch/arm/mach-tegra/p852 | |
parent | 9a04e36ab05bfe16b9c1fdeec48195462ce09d2e (diff) |
ARM: tegra: p852: Fix misbracketed cond clause
This misbracketing can potentially result in an invalid pointer dereference.
Signed-off-by: Andrew Chew <achew@nvidia.com>
Change-Id: Iaed185dd2141f1aa332747eeba10d22b850caa37
Reviewed-on: http://git-master/r/168475
Reviewed-by: Peng Wu <pengw@nvidia.com>
Tested-by: Peng Wu <pengw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/p852')
-rw-r--r-- | arch/arm/mach-tegra/p852/board-p852-power.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/p852/board-p852-power.c b/arch/arm/mach-tegra/p852/board-p852-power.c index 949537ed5d94..e69f98c8cba9 100644 --- a/arch/arm/mach-tegra/p852/board-p852-power.c +++ b/arch/arm/mach-tegra/p852/board-p852-power.c @@ -173,11 +173,12 @@ static void __init tps6586x_rtc_preinit(void) system_rev == P852_SKU5_C01) { for (i = 0; i < tps_platform.num_subdevs; ++i) if (!strcmp(tps_platform.subdevs[i].name, - "tps6586x-rtc")) + "tps6586x-rtc")) { rtc_pdata = (struct tps6586x_rtc_platform_data *) (tps_platform.subdevs[i].platform_data); rtc_pdata->cl_sel = TPS6586X_RTC_CL_SEL_1_5PF; + } } } |