diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2011-07-28 18:28:17 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:57 -0800 |
commit | 4643b4894e3d56c62fc63b118027a35f7a96f598 (patch) | |
tree | 0bda0e845c8b0de7c3a87e8f5775d33cf36b6708 /drivers/hwmon | |
parent | b62ccc375310a2f69aa8096930d28c24da5d7854 (diff) |
hwmon: tegra: tsensor: error handling change
tsensor setup function error path corrected to return error.
bug 857074
Original-Change-Id: I8c4be4868546d39c6c49de9eee4d20afe75f075a
Reviewed-on: http://git-master/r/43714
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Rebase-Id: Rac3c6ffe339d05186ea38e07e03c517a5d5319ba
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/tegra-tsensor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/tegra-tsensor.c b/drivers/hwmon/tegra-tsensor.c index bc72e867bc0a..0632383b11d5 100644 --- a/drivers/hwmon/tegra-tsensor.c +++ b/drivers/hwmon/tegra-tsensor.c @@ -1471,6 +1471,7 @@ static int tegra_tsensor_setup(struct platform_device *pdev) if (!test_temperature_algo(data)) { dev_err(&pdev->dev, " Error: read temperature " "algorithm broken "); + err = -EIO; goto err_setup; } |