diff options
Diffstat (limited to 'drivers/hwmon/pc87360.c')
-rw-r--r-- | drivers/hwmon/pc87360.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c index 9d660133d517..9b462bb13fa3 100644 --- a/drivers/hwmon/pc87360.c +++ b/drivers/hwmon/pc87360.c | |||
@@ -59,6 +59,10 @@ MODULE_PARM_DESC(init, | |||
59 | " 2: Forcibly enable all voltage and temperature channels, except in9\n" | 59 | " 2: Forcibly enable all voltage and temperature channels, except in9\n" |
60 | " 3: Forcibly enable all voltage and temperature channels, including in9"); | 60 | " 3: Forcibly enable all voltage and temperature channels, including in9"); |
61 | 61 | ||
62 | static unsigned short force_id; | ||
63 | module_param(force_id, ushort, 0); | ||
64 | MODULE_PARM_DESC(force_id, "Override the detected device ID"); | ||
65 | |||
62 | /* | 66 | /* |
63 | * Super-I/O registers and operations | 67 | * Super-I/O registers and operations |
64 | */ | 68 | */ |
@@ -826,7 +830,7 @@ static int __init pc87360_find(int sioaddr, u8 *devid, unsigned short *addresses | |||
826 | /* No superio_enter */ | 830 | /* No superio_enter */ |
827 | 831 | ||
828 | /* Identify device */ | 832 | /* Identify device */ |
829 | val = superio_inb(sioaddr, DEVID); | 833 | val = force_id ? force_id : superio_inb(sioaddr, DEVID); |
830 | switch (val) { | 834 | switch (val) { |
831 | case 0xE1: /* PC87360 */ | 835 | case 0xE1: /* PC87360 */ |
832 | case 0xE8: /* PC87363 */ | 836 | case 0xE8: /* PC87363 */ |