summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorBitan Biswas <bbiswas@nvidia.com>2011-08-12 14:19:19 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:16 -0800
commit9cdd7bcff7e5d9a279aeb69c2410805581f6015d (patch)
tree1fc6b933dc6d2830d1add3d4e0117be7e24f1959 /drivers/hwmon
parentd7096a4c1ef740ee2b935fb93c5d2027316229ce (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')
-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 257294d73dff..c7ac0f90e9c3 100644
--- a/drivers/hwmon/tegra-tsensor.c
+++ b/drivers/hwmon/tegra-tsensor.c
@@ -1601,7 +1601,8 @@ static int __devinit 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");