summaryrefslogtreecommitdiff
path: root/drivers/hwmon/tegra-tsensor.c
diff options
context:
space:
mode:
authorBitan Biswas <bbiswas@nvidia.com>2011-08-12 14:19:19 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 00:48:43 -0700
commit1a1957d86787c45a29a76a2284518bd4704e4c91 (patch)
treee6b0d4cbddc10afcbeffbc54a51dc41d59f75b55 /drivers/hwmon/tegra-tsensor.c
parent8d96d7f33ed2e858ebaeb1f52592a5b4e5cd785e (diff)
hwmon: tegra: tsensor: error propagation
tsensor probe was not propagating error from a called function. Later suspend/resume was getting called causing crash. Fixed the code. bug 863316 Original-Change-Id: I1851d75aeeee332bc582fe45fd7c1c8f0521b5c7 Reviewed-on: http://git-master/r/46890 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com> Rebase-Id: R77a15193c8ae51746ff477f3d877825dd81ecd34
Diffstat (limited to 'drivers/hwmon/tegra-tsensor.c')
-rw-r--r--drivers/hwmon/tegra-tsensor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/tegra-tsensor.c b/drivers/hwmon/tegra-tsensor.c
index 5dbd7bcecbf4..80d1c8e1fcb8 100644
--- a/drivers/hwmon/tegra-tsensor.c
+++ b/drivers/hwmon/tegra-tsensor.c
@@ -1603,7 +1603,8 @@ static int tegra_tsensor_probe(struct platform_device *pdev)
pr_info("tsensor active instance=%d\n", tsensor_index);
/* tegra tsensor - setup and init */
- if (tegra_tsensor_setup(pdev) != 0)
+ err = tegra_tsensor_setup(pdev);
+ if (err)
goto err6;
dev_dbg(&pdev->dev, "end tegra_tsensor_probe\n");