diff options
author | Christian Schulte <cs@schulte.it> | 2009-12-16 21:38:29 +0100 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-12-16 21:38:29 +0100 |
commit | c46c0e9188685c0276b4c0adf9fb7e903937e35b (patch) | |
tree | 1e54a107d105e006c55a731c7146e8986442bafd /drivers/hwmon | |
parent | 4235f684b66d6f00d2cd8849c884cf8f8b57ecad (diff) | |
download | op-kernel-dev-c46c0e9188685c0276b4c0adf9fb7e903937e35b.zip op-kernel-dev-c46c0e9188685c0276b4c0adf9fb7e903937e35b.tar.gz |
hwmon: (w83627hf) Fix for "No such device"
The commit b72656dbc491484765776a16eeb55ef2e90efea6 introduced
a bug leading to the w83627hf_find function no longer finding
any chips.
Signed-off-by: Christian Schulte <cs@schulte.it>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/w83627hf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index b257c72..38e2805 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c @@ -1135,6 +1135,7 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr, "W83687THF", }; + sio_data->sioaddr = sioaddr; superio_enter(sio_data); val = force_id ? force_id : superio_inb(sio_data, DEVID); switch (val) { @@ -1177,7 +1178,6 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr, } err = 0; - sio_data->sioaddr = sioaddr; pr_info(DRVNAME ": Found %s chip at %#x\n", names[sio_data->type], *addr); |