git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include/asm-generic/pgtable-nopmd.h: macros are noxious, reason #435
[safe/jmp/linux-2.6]
/
drivers
/
hwmon
/
f71882fg.c
diff --git
a/drivers/hwmon/f71882fg.c
b/drivers/hwmon/f71882fg.c
index
6db7443
..
cbeb498
100644
(file)
--- a/
drivers/hwmon/f71882fg.c
+++ b/
drivers/hwmon/f71882fg.c
@@
-74,6
+74,10
@@
#define FAN_MIN_DETECT 366 /* Lowest detectable fanspeed */
#define FAN_MIN_DETECT 366 /* Lowest detectable fanspeed */
+static unsigned short force_id;
+module_param(force_id, ushort, 0);
+MODULE_PARM_DESC(force_id, "Override the detected device ID");
+
static struct platform_device *f71882fg_pdev = NULL;
/* Super-I/O Function prototypes */
static struct platform_device *f71882fg_pdev = NULL;
/* Super-I/O Function prototypes */
@@
-843,7
+847,7
@@
static int __init f71882fg_find(int sioaddr, unsigned short *address)
goto exit;
}
goto exit;
}
- devid = superio_inw(sioaddr, SIO_REG_DEVID);
+ devid =
force_id ? force_id :
superio_inw(sioaddr, SIO_REG_DEVID);
if (devid != SIO_F71882_ID) {
printk(KERN_INFO DRVNAME ": Unsupported Fintek device\n");
goto exit;
if (devid != SIO_F71882_ID) {
printk(KERN_INFO DRVNAME ": Unsupported Fintek device\n");
goto exit;