summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/tegra-tsensor.c1
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;
}