summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorBitan Biswas <bbiswas@nvidia.com>2011-08-12 14:19:19 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-08-12 17:35:52 -0700
commitf083103e48cc267d94b81e3537814e03e21483f3 (patch)
treef518a7d37cdb6d9c1c3bba22dac014656db39aa4 /drivers/hwmon
parentbd0bf9a8d98f313491e1dda9f915d4add1d98580 (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 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>
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");