dell-wmi - fix condition to abort driver loading
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 25 Dec 2009 19:49:35 +0000 (11:49 -0800)
committerLen Brown <len.brown@intel.com>
Wed, 30 Dec 2009 07:49:03 +0000 (02:49 -0500)
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>
drivers/platform/x86/dell-wmi.c

index 500af8c..1b1dddb 100644 (file)
@@ -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;
        }