[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-i2c
Subject: [PATCH v2 1/2] i2c-i801: Check for vendor Fujitsu before probing
From: Jean Delvare <khali () linux-fr ! org>
Date: 2011-05-15 20:10:58
Message-ID: 20110515221058.5dc22a1e () endymion ! delvare
[Download RAW message or body]
Scanning the BIOS memory for the apanel information is costly, so avoid
doing it on non-Fujitsu machines.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic