Skip to content

Commit

Permalink
dell-wmi - fix condition to abort driver loading
Browse files Browse the repository at this point in the history
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

The commit 1fdd407 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>
  • Loading branch information
Dmitry Torokhov authored and Len Brown committed Dec 30, 2009
1 parent c03b26a commit 7a9568f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/dell-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7a9568f

Please sign in to comment.