aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/msi-wmi.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/platform/x86/msi-wmi.c b/drivers/platform/x86/msi-wmi.c
index dcb048c0793f..75e422b27531 100644
--- a/drivers/platform/x86/msi-wmi.c
+++ b/drivers/platform/x86/msi-wmi.c
@@ -31,10 +31,6 @@ MODULE_AUTHOR("Thomas Renninger <trenn@suse.de>");
31MODULE_DESCRIPTION("MSI laptop WMI hotkeys driver"); 31MODULE_DESCRIPTION("MSI laptop WMI hotkeys driver");
32MODULE_LICENSE("GPL"); 32MODULE_LICENSE("GPL");
33 33
34static int debug;
35module_param(debug, int, 0);
36MODULE_PARM_DESC(debug, "Set this to 1 to let the driver be more verbose");
37
38MODULE_ALIAS("wmi:551A1F84-FBDD-4125-91DB-3EA8F44F1D45"); 34MODULE_ALIAS("wmi:551A1F84-FBDD-4125-91DB-3EA8F44F1D45");
39MODULE_ALIAS("wmi:B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2"); 35MODULE_ALIAS("wmi:B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2");
40 36
@@ -54,10 +50,7 @@ MODULE_ALIAS("dmi:*:svnMICRO-STARINTERNATIONAL*:pnMS-6638:*");
54#define MSIWMI_BIOS_GUID "551A1F84-FBDD-4125-91DB-3EA8F44F1D45" 50#define MSIWMI_BIOS_GUID "551A1F84-FBDD-4125-91DB-3EA8F44F1D45"
55#define MSIWMI_EVENT_GUID "B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2" 51#define MSIWMI_EVENT_GUID "B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2"
56 52
57#define dprintk(msg...) do { \ 53#define dprintk(msg...) pr_debug(DRV_PFX msg)
58 if (debug) \
59 printk(KERN_INFO DRV_PFX msg); \
60 } while (0)
61 54
62struct key_entry { 55struct key_entry {
63 char type; /* See KE_* below */ 56 char type; /* See KE_* below */
@@ -343,7 +336,7 @@ static int __init msi_wmi_init(void)
343 336
344 backlight->props.brightness = err; 337 backlight->props.brightness = err;
345 } 338 }
346 printk(KERN_INFO DRV_PFX "Event handler installed\n"); 339 dprintk("Event handler installed\n");
347 340
348 return 0; 341 return 0;
349 342