aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/f71805f.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/f71805f.c')
-rw-r--r--drivers/hwmon/f71805f.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/f71805f.c b/drivers/hwmon/f71805f.c
index 37ba421789bc..a272cae8f60e 100644
--- a/drivers/hwmon/f71805f.c
+++ b/drivers/hwmon/f71805f.c
@@ -102,9 +102,9 @@ superio_exit(int base)
102 * ISA constants 102 * ISA constants
103 */ 103 */
104 104
105#define REGION_LENGTH 2 105#define REGION_LENGTH 8
106#define ADDR_REG_OFFSET 0 106#define ADDR_REG_OFFSET 5
107#define DATA_REG_OFFSET 1 107#define DATA_REG_OFFSET 6
108 108
109/* 109/*
110 * Registers 110 * Registers
@@ -1359,6 +1359,7 @@ static int __init f71805f_find(int sioaddr, unsigned short *address,
1359 "skipping\n"); 1359 "skipping\n");
1360 goto exit; 1360 goto exit;
1361 } 1361 }
1362 *address &= ~(REGION_LENGTH - 1); /* Ignore 3 LSB */
1362 1363
1363 err = 0; 1364 err = 0;
1364 printk(KERN_INFO DRVNAME ": Found %s chip at %#x, revision %u\n", 1365 printk(KERN_INFO DRVNAME ": Found %s chip at %#x, revision %u\n",