diff options
Diffstat (limited to 'drivers/hwmon/f71805f.c')
-rw-r--r-- | drivers/hwmon/f71805f.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/hwmon/f71805f.c b/drivers/hwmon/f71805f.c index 6f60715f34f8..5d9d5cc816a2 100644 --- a/drivers/hwmon/f71805f.c +++ b/drivers/hwmon/f71805f.c | |||
@@ -10,6 +10,9 @@ | |||
10 | * The F71872F/FG is almost the same, with two more voltages monitored, | 10 | * The F71872F/FG is almost the same, with two more voltages monitored, |
11 | * and 6 VID inputs. | 11 | * and 6 VID inputs. |
12 | * | 12 | * |
13 | * The F71806F/FG is essentially the same as the F71872F/FG. It even has | ||
14 | * the same chip ID, so the driver can't differentiate between. | ||
15 | * | ||
13 | * This program is free software; you can redistribute it and/or modify | 16 | * This program is free software; you can redistribute it and/or modify |
14 | * it under the terms of the GNU General Public License as published by | 17 | * it under the terms of the GNU General Public License as published by |
15 | * the Free Software Foundation; either version 2 of the License, or | 18 | * the Free Software Foundation; either version 2 of the License, or |
@@ -159,7 +162,7 @@ struct f71805f_auto_point { | |||
159 | struct f71805f_data { | 162 | struct f71805f_data { |
160 | unsigned short addr; | 163 | unsigned short addr; |
161 | const char *name; | 164 | const char *name; |
162 | struct class_device *class_dev; | 165 | struct device *hwmon_dev; |
163 | 166 | ||
164 | struct mutex update_lock; | 167 | struct mutex update_lock; |
165 | char valid; /* !=0 if following fields are valid */ | 168 | char valid; /* !=0 if following fields are valid */ |
@@ -1378,9 +1381,9 @@ static int __devinit f71805f_probe(struct platform_device *pdev) | |||
1378 | } | 1381 | } |
1379 | } | 1382 | } |
1380 | 1383 | ||
1381 | data->class_dev = hwmon_device_register(&pdev->dev); | 1384 | data->hwmon_dev = hwmon_device_register(&pdev->dev); |
1382 | if (IS_ERR(data->class_dev)) { | 1385 | if (IS_ERR(data->hwmon_dev)) { |
1383 | err = PTR_ERR(data->class_dev); | 1386 | err = PTR_ERR(data->hwmon_dev); |
1384 | dev_err(&pdev->dev, "Class registration failed (%d)\n", err); | 1387 | dev_err(&pdev->dev, "Class registration failed (%d)\n", err); |
1385 | goto exit_remove_files; | 1388 | goto exit_remove_files; |
1386 | } | 1389 | } |
@@ -1407,7 +1410,7 @@ static int __devexit f71805f_remove(struct platform_device *pdev) | |||
1407 | struct resource *res; | 1410 | struct resource *res; |
1408 | int i; | 1411 | int i; |
1409 | 1412 | ||
1410 | hwmon_device_unregister(data->class_dev); | 1413 | hwmon_device_unregister(data->hwmon_dev); |
1411 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group); | 1414 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group); |
1412 | for (i = 0; i < 4; i++) | 1415 | for (i = 0; i < 4; i++) |
1413 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group_optin[i]); | 1416 | sysfs_remove_group(&pdev->dev.kobj, &f71805f_group_optin[i]); |
@@ -1485,7 +1488,7 @@ static int __init f71805f_find(int sioaddr, unsigned short *address, | |||
1485 | 1488 | ||
1486 | static const char *names[] = { | 1489 | static const char *names[] = { |
1487 | "F71805F/FG", | 1490 | "F71805F/FG", |
1488 | "F71872F/FG", | 1491 | "F71872F/FG or F71806F/FG", |
1489 | }; | 1492 | }; |
1490 | 1493 | ||
1491 | superio_enter(sioaddr); | 1494 | superio_enter(sioaddr); |