* [PATCH v2 1/2] i2c-i801: Check for vendor Fujitsu before probing for apanel
@ 2011-05-15 20:10 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2011-05-15 20:10 UTC (permalink / raw)
To: Linux I2C; +Cc: David Woodhouse, Hans de Goede
Scanning the BIOS memory for the apanel information is costly, so avoid
doing it on non-Fujitsu machines.
Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-15 20:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-15 20:10 [PATCH v2 1/2] i2c-i801: Check for vendor Fujitsu before probing for apanel Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).