Scanning the BIOS memory for the apanel information is costly, so avoid
doing it on non-Fujitsu machines.

Signed-off-by: Jean Delvare <[email protected]>
---
 drivers/i2c/busses/i2c-i801.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.39-rc7.orig/drivers/i2c/busses/i2c-i801.c 2011-05-15 
21:13:06.000000000 +0200
+++ linux-2.6.39-rc7/drivers/i2c/busses/i2c-i801.c      2011-05-15 
21:31:42.000000000 +0200
@@ -931,7 +931,8 @@ static struct pci_driver i801_driver = {
 
 static int __init i2c_i801_init(void)
 {
-       input_apanel_init();
+       if (dmi_name_in_vendors("FUJITSU"))
+               input_apanel_init();
        return pci_register_driver(&i801_driver);
 }
 

-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to