mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 00:08:50 +00:00
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>
This commit is contained in:
parent
c03b26a5a5
commit
7a9568f536
@ -330,7 +330,7 @@ static int __init dell_wmi_init(void)
|
|||||||
int err;
|
int err;
|
||||||
acpi_status status;
|
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");
|
printk(KERN_WARNING "dell-wmi: No known WMI GUID found\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user