summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_tsensor.c
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@nvidia.com>2011-10-26 16:08:40 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2012-03-22 23:48:40 -0700
commit543a60a4fbd62e409e88174319b468f29aff4db1 (patch)
tree7957bf4d1699aa9cfbb97f26e6f0ecb50bdf833f /arch/arm/mach-tegra/tegra3_tsensor.c
parentaed0a74ed454abbe403f2bbfecbf32c2b8bac677 (diff)
ARM: tegra: temp sensor: fix error handler
Change-Id: Ie730ad7ec74927ef63722f4038db00e5f5d31154 Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com> Reviewed-on: http://git-master/r/60558 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Rebase-Id: Rad06124e61bdf95cb0307dd2204f2bf4bb92e718
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_tsensor.c')
-rw-r--r--arch/arm/mach-tegra/tegra3_tsensor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra3_tsensor.c b/arch/arm/mach-tegra/tegra3_tsensor.c
index 866c6a9f35c5..c498a2db2282 100644
--- a/arch/arm/mach-tegra/tegra3_tsensor.c
+++ b/arch/arm/mach-tegra/tegra3_tsensor.c
@@ -86,9 +86,11 @@ void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data)
__func__, __LINE__);
pMem = ioremap(TEGRA_PMC_BASE + SCRATCH54_OFFSET, 8);
- if (!pMem)
+ if (!pMem) {
pr_err(" [%s, line=%d]: can't ioremap "
"pmc iomem\n", __FILE__, __LINE__);
+ goto labelEnd;
+ }
/*
* Fill scratch registers to power off the device