Skip to content

Commit

Permalink
i2c-i801: Check for vendor Fujitsu before probing for apanel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and Jean Delvare committed May 24, 2011
1 parent e7198fb commit 6aa1464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/busses/i2c-i801.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6aa1464

Please sign in to comment.