aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/f71882fg.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-01-07 10:37:29 -0500
committerJean Delvare <khali@linux-fr.org>2009-01-07 10:37:29 -0500
commit12d66e840b605265d6adf4b800cc3fc5fb410903 (patch)
tree0af90327ce2449fe377d9402d09ebea3c104f484 /drivers/hwmon/f71882fg.c
parentbc27490f9164281b9e1768a5df8e0951541f90a1 (diff)
hwmon: (f71882fg) Check for hwmon powerdown state
More F8000 prep work. Take over the checking if the hwmon part is not powered down from the standalone f8000 driver. This check is valid for all supported models. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/f71882fg.c')
-rw-r--r--drivers/hwmon/f71882fg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hwmon/f71882fg.c b/drivers/hwmon/f71882fg.c
index de559923454c..03a4f84b4e5c 100644
--- a/drivers/hwmon/f71882fg.c
+++ b/drivers/hwmon/f71882fg.c
@@ -1500,6 +1500,11 @@ static int __devinit f71882fg_probe(struct platform_device *pdev)
1500 platform_set_drvdata(pdev, data); 1500 platform_set_drvdata(pdev, data);
1501 1501
1502 start_reg = f71882fg_read8(data, F71882FG_REG_START); 1502 start_reg = f71882fg_read8(data, F71882FG_REG_START);
1503 if (start_reg & 0x04) {
1504 dev_warn(&pdev->dev, "Hardware monitor is powered down\n");
1505 err = -ENODEV;
1506 goto exit_free;
1507 }
1503 if (!(start_reg & 0x03)) { 1508 if (!(start_reg & 0x03)) {
1504 dev_warn(&pdev->dev, "Hardware monitoring not activated\n"); 1509 dev_warn(&pdev->dev, "Hardware monitoring not activated\n");
1505 err = -ENODEV; 1510 err = -ENODEV;