From: Dmitry Torokhov Date: Fri, 25 Dec 2009 19:49:35 +0000 (-0800) Subject: dell-wmi - fix condition to abort driver loading X-Git-Tag: v2.6.33-rc3~32^2~4^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7a9568f536754623738110a314ff33286cdbb17d;p=~shefty%2Frdma-dev.git dell-wmi - fix condition to abort driver loading From: Dmitry Torokhov 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 Signed-off-by: Len Brown --- diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index 500af8c9ada..1b1dddbd574 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; }