hwmon: (w83627hf) Fix for "No such device"

The commit b72656dbc4 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>
This commit is contained in:
Christian Schulte 2009-12-16 21:38:29 +01:00 committed by Jean Delvare
parent 4235f684b6
commit c46c0e9188
1 changed files with 1 additions and 1 deletions

View File

@ -1135,6 +1135,7 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
"W83687THF", "W83687THF",
}; };
sio_data->sioaddr = sioaddr;
superio_enter(sio_data); superio_enter(sio_data);
val = force_id ? force_id : superio_inb(sio_data, DEVID); val = force_id ? force_id : superio_inb(sio_data, DEVID);
switch (val) { switch (val) {
@ -1177,7 +1178,6 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
} }
err = 0; err = 0;
sio_data->sioaddr = sioaddr;
pr_info(DRVNAME ": Found %s chip at %#x\n", pr_info(DRVNAME ": Found %s chip at %#x\n",
names[sio_data->type], *addr); names[sio_data->type], *addr);