diff options
author | Mark M. Hoffman <mhoffman@lightlink.com> | 2008-05-01 07:33:17 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2008-05-01 07:33:17 -0400 |
commit | 4f02f8220562591322c118d07a32bebf705318b7 (patch) | |
tree | f203c196d16065a51c68e6539e912ca7f9ca9f8f /drivers/hwmon | |
parent | 1852448652fd526d56099256dadc4ef32cb1b10e (diff) | |
parent | 809307768cb177621b8f45f87fa840993ca4cb60 (diff) |
Merge branch 'smsc47b397-new-id' into release
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/smsc47b397.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c index f61d8f4185b2..eb03544c731c 100644 --- a/drivers/hwmon/smsc47b397.c +++ b/drivers/hwmon/smsc47b397.c | |||
@@ -335,11 +335,23 @@ exit: | |||
335 | static int __init smsc47b397_find(unsigned short *addr) | 335 | static int __init smsc47b397_find(unsigned short *addr) |
336 | { | 336 | { |
337 | u8 id, rev; | 337 | u8 id, rev; |
338 | char *name; | ||
338 | 339 | ||
339 | superio_enter(); | 340 | superio_enter(); |
340 | id = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID); | 341 | id = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID); |
341 | 342 | ||
342 | if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) { | 343 | switch(id) { |
344 | case 0x81: | ||
345 | name = "SCH5307-NS"; | ||
346 | break; | ||
347 | case 0x6f: | ||
348 | name = "LPC47B397-NC"; | ||
349 | break; | ||
350 | case 0x85: | ||
351 | case 0x8c: | ||
352 | name = "SCH5317"; | ||
353 | break; | ||
354 | default: | ||
343 | superio_exit(); | 355 | superio_exit(); |
344 | return -ENODEV; | 356 | return -ENODEV; |
345 | } | 357 | } |
@@ -352,8 +364,7 @@ static int __init smsc47b397_find(unsigned short *addr) | |||
352 | 364 | ||
353 | printk(KERN_INFO DRVNAME ": found SMSC %s " | 365 | printk(KERN_INFO DRVNAME ": found SMSC %s " |
354 | "(base address 0x%04x, revision %u)\n", | 366 | "(base address 0x%04x, revision %u)\n", |
355 | id == 0x81 ? "SCH5307-NS" : id == 0x85 ? "SCH5317" : | 367 | name, *addr, rev); |
356 | "LPC47B397-NC", *addr, rev); | ||
357 | 368 | ||
358 | superio_exit(); | 369 | superio_exit(); |
359 | return 0; | 370 | return 0; |