From: Jean Delvare Date: Tue, 24 May 2011 18:58:49 +0000 (+0200) Subject: i2c-i801: Check for vendor Fujitsu before probing for apanel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6aa1464d5482cc8f6f026ebb12d94b77a58c823b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c-i801: Check for vendor Fujitsu before probing for apanel Scanning the BIOS memory for the apanel information is costly, so avoid doing it on non-Fujitsu machines. Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 4228691ffde8..1aa5be019cfc 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -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); }