Skip to contentSkip to conversation

i2c-i801: Remove PCI function

PATCH New Greg KH 1 participant 1 message Jun 22, 2006

Subsystems (2)
lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 37/44 i2c-i801: Remove PCI function

From: Jean Delvare <khali at linux-fr.org>

i2c-i801: Remove PCI function check

Remove the PCI function number check when probing devices. This check is redundant, each function has a separate PCI device ID, so checking for that ID is sufficient.

Signed-off-by Jean Delvare <khali at linux-fr.org>
Signed-off-by Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/i2c/busses/i2c-i801.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/i2c/busses/i2c-i801.c +0 -4
index 0d5374c..b651493 100644
@@ -107,10 +107,6 @@ static int i801_setup(struct pci_dev *de
 	int error_return = 0;
 	unsigned char temp;
 
-	/* Note: we keep on searching until we have found 'function 3' */
-	if(PCI_FUNC(dev->devfn) != 3)
-		return -ENODEV;
-
 	I801_dev = dev;
 	if ((dev->device = PCI_DEVICE_ID_INTEL_82801DB_3) ||
 	    (dev->device = PCI_DEVICE_ID_INTEL_82801EB_3) ||
Signature · 1 line
1.4.0