diff options
Diffstat (limited to 'drivers/hwmon/smsc47b397.c')
-rw-r--r-- | drivers/hwmon/smsc47b397.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c index 0b57d2ea2cf7..f61d8f4185b2 100644 --- a/drivers/hwmon/smsc47b397.c +++ b/drivers/hwmon/smsc47b397.c | |||
@@ -38,6 +38,10 @@ | |||
38 | #include <linux/mutex.h> | 38 | #include <linux/mutex.h> |
39 | #include <asm/io.h> | 39 | #include <asm/io.h> |
40 | 40 | ||
41 | static unsigned short force_id; | ||
42 | module_param(force_id, ushort, 0); | ||
43 | MODULE_PARM_DESC(force_id, "Override the detected device ID"); | ||
44 | |||
41 | static struct platform_device *pdev; | 45 | static struct platform_device *pdev; |
42 | 46 | ||
43 | #define DRVNAME "smsc47b397" | 47 | #define DRVNAME "smsc47b397" |
@@ -333,7 +337,7 @@ static int __init smsc47b397_find(unsigned short *addr) | |||
333 | u8 id, rev; | 337 | u8 id, rev; |
334 | 338 | ||
335 | superio_enter(); | 339 | superio_enter(); |
336 | id = superio_inb(SUPERIO_REG_DEVID); | 340 | id = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID); |
337 | 341 | ||
338 | if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) { | 342 | if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) { |
339 | superio_exit(); | 343 | superio_exit(); |