diff options
Diffstat (limited to 'drivers/hwmon/vt1211.c')
-rw-r--r-- | drivers/hwmon/vt1211.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c index 7dfcc8dd316d..12b43590fa53 100644 --- a/drivers/hwmon/vt1211.c +++ b/drivers/hwmon/vt1211.c | |||
@@ -42,6 +42,10 @@ static int int_mode = -1; | |||
42 | module_param(int_mode, int, 0); | 42 | module_param(int_mode, int, 0); |
43 | MODULE_PARM_DESC(int_mode, "Force the temperature interrupt mode"); | 43 | MODULE_PARM_DESC(int_mode, "Force the temperature interrupt mode"); |
44 | 44 | ||
45 | static unsigned short force_id; | ||
46 | module_param(force_id, ushort, 0); | ||
47 | MODULE_PARM_DESC(force_id, "Override the detected device ID"); | ||
48 | |||
45 | static struct platform_device *pdev; | 49 | static struct platform_device *pdev; |
46 | 50 | ||
47 | #define DRVNAME "vt1211" | 51 | #define DRVNAME "vt1211" |
@@ -1280,10 +1284,12 @@ EXIT: | |||
1280 | static int __init vt1211_find(int sio_cip, unsigned short *address) | 1284 | static int __init vt1211_find(int sio_cip, unsigned short *address) |
1281 | { | 1285 | { |
1282 | int err = -ENODEV; | 1286 | int err = -ENODEV; |
1287 | int devid; | ||
1283 | 1288 | ||
1284 | superio_enter(sio_cip); | 1289 | superio_enter(sio_cip); |
1285 | 1290 | ||
1286 | if (superio_inb(sio_cip, SIO_VT1211_DEVID) != SIO_VT1211_ID) { | 1291 | devid = force_id ? force_id : superio_inb(sio_cip, SIO_VT1211_DEVID); |
1292 | if (devid != SIO_VT1211_ID) { | ||
1287 | goto EXIT; | 1293 | goto EXIT; |
1288 | } | 1294 | } |
1289 | 1295 | ||