summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/dell-wmi.c
diff options
context:
space:
mode:
authorDmitry Torokhov2009-12-25 20:49:35 +0100
committerLen Brown2009-12-30 08:49:03 +0100
commit7a9568f536754623738110a314ff33286cdbb17d (patch)
treed961b9ee41911dc693e3a1c5d3bd25b25af8c427 /drivers/platform/x86/dell-wmi.c
parentwmi: check find_guid() return value to prevent oops (diff)
downloadkernel-qcow2-linux-7a9568f536754623738110a314ff33286cdbb17d.tar.gz
kernel-qcow2-linux-7a9568f536754623738110a314ff33286cdbb17d.tar.xz
kernel-qcow2-linux-7a9568f536754623738110a314ff33286cdbb17d.zip
dell-wmi - fix condition to abort driver loading
From: Dmitry Torokhov <dmitry.torokhov@gmail.com> The commit 1fdd407f4e3f2ecb453954cbebb6c22491c61853 incorrectly made driver abort loading when known GUID is present when it should have done exactly the opposite. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform/x86/dell-wmi.c')
-rw-r--r--drivers/platform/x86/dell-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 500af8c9ada0..1b1dddbd5744 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -330,7 +330,7 @@ static int __init dell_wmi_init(void)
int err;
acpi_status status;
- if (wmi_has_guid(DELL_EVENT_GUID)) {
+ if (!wmi_has_guid(DELL_EVENT_GUID)) {
printk(KERN_WARNING "dell-wmi: No known WMI GUID found\n");
return -ENODEV;
}