diff mbox

[2/3] Don't load Dell-WMI on non WMI systems

Message ID 49EE0A13.50403@dell.com (mailing list archive)
State Superseded, archived
Delegated to: Matthew Garrett
Headers show

Commit Message

Mario Limonciello April 21, 2009, 6:01 p.m. UTC
Hi:

I've noticed that the dell-wmi module will load on systems even if WMI
isn't supported.  As this is dependent upon BIOS version, dell-wmi
should return -ENODEV in these situations.

Regards
diff mbox

Patch

--- a/drivers/platform/x86/dell-wmi.c~	2009-04-21 12:41:50.000000000 -0500
+++ b/drivers/platform/x86/dell-wmi.c	2009-04-21 12:30:35.000000000 -0500
@@ -255,8 +255,10 @@ 
 			return err;
 		}
 
-	} else
-		printk(KERN_WARNING "dell-wmi: No known WMI GUID found\n");
+	} else {
+		printk(KERN_ERR "dell-wmi: No known WMI GUID found\n");
+		return -ENODEV;
+    }
 
 	return 0;
 }