hwmon: tegra: tsensor: error propagation
authorBitan Biswas <bbiswas@nvidia.com>
Fri, 12 Aug 2011 08:49:19 +0000 (13:49 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:48:16 +0000 (21:48 -0800)
commit9cdd7bcff7e5d9a279aeb69c2410805581f6015d
tree1fc6b933dc6d2830d1add3d4e0117be7e24f1959
parentd7096a4c1ef740ee2b935fb93c5d2027316229ce
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
drivers/hwmon/tegra-tsensor.c