diff options
Diffstat (limited to 'drivers/hwmon/pc87427.c')
-rw-r--r-- | drivers/hwmon/pc87427.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/hwmon/pc87427.c b/drivers/hwmon/pc87427.c index d40509ad6ae6..7265f22ae5cd 100644 --- a/drivers/hwmon/pc87427.c +++ b/drivers/hwmon/pc87427.c | |||
@@ -34,6 +34,10 @@ | |||
34 | #include <linux/ioport.h> | 34 | #include <linux/ioport.h> |
35 | #include <asm/io.h> | 35 | #include <asm/io.h> |
36 | 36 | ||
37 | static unsigned short force_id; | ||
38 | module_param(force_id, ushort, 0); | ||
39 | MODULE_PARM_DESC(force_id, "Override the detected device ID"); | ||
40 | |||
37 | static struct platform_device *pdev; | 41 | static struct platform_device *pdev; |
38 | 42 | ||
39 | #define DRVNAME "pc87427" | 43 | #define DRVNAME "pc87427" |
@@ -555,7 +559,7 @@ static int __init pc87427_find(int sioaddr, unsigned short *address) | |||
555 | int i, err = 0; | 559 | int i, err = 0; |
556 | 560 | ||
557 | /* Identify device */ | 561 | /* Identify device */ |
558 | val = superio_inb(sioaddr, SIOREG_DEVID); | 562 | val = force_id ? force_id : superio_inb(sioaddr, SIOREG_DEVID); |
559 | if (val != 0xf2) { /* PC87427 */ | 563 | if (val != 0xf2) { /* PC87427 */ |
560 | err = -ENODEV; | 564 | err = -ENODEV; |
561 | goto exit; | 565 | goto exit; |