diff options
Diffstat (limited to 'drivers/misc/thinkpad_acpi.c')
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 56112684967b..cddf81bb2d97 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -2881,6 +2881,16 @@ static int __init probe_for_thinkpad(void) | |||
2881 | return -ENODEV; | 2881 | return -ENODEV; |
2882 | } | 2882 | } |
2883 | 2883 | ||
2884 | /* | ||
2885 | * Risks a regression on very old machines, but reduces potential | ||
2886 | * false positives a damn great deal | ||
2887 | */ | ||
2888 | if (!is_thinkpad) | ||
2889 | is_thinkpad = dmi_name_in_vendors("IBM"); | ||
2890 | |||
2891 | if (!is_thinkpad && !force_load) | ||
2892 | return -ENODEV; | ||
2893 | |||
2884 | return 0; | 2894 | return 0; |
2885 | } | 2895 | } |
2886 | 2896 | ||
@@ -2986,6 +2996,9 @@ module_param(experimental, int, 0); | |||
2986 | static u32 dbg_level; | 2996 | static u32 dbg_level; |
2987 | module_param_named(debug, dbg_level, uint, 0); | 2997 | module_param_named(debug, dbg_level, uint, 0); |
2988 | 2998 | ||
2999 | static int force_load; | ||
3000 | module_param(force_load, int, 0); | ||
3001 | |||
2989 | #define IBM_PARAM(feature) \ | 3002 | #define IBM_PARAM(feature) \ |
2990 | module_param_call(feature, set_ibm_param, NULL, NULL, 0) | 3003 | module_param_call(feature, set_ibm_param, NULL, NULL, 0) |
2991 | 3004 | ||