[PATCH] i2c-i801: Remove PCI function check
authorJean Delvare <khali@linux-fr.org>
Mon, 12 Jun 2006 19:51:20 +0000 (21:51 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jun 2006 18:10:35 +0000 (11:10 -0700)
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@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-i801.c

index 0d5374cce9ccc7bb71b138ea3445b48958d08532..b651493375caafb64b106a689e5cca1f880d3c3c 100644 (file)
@@ -107,10 +107,6 @@ static int i801_setup(struct pci_dev *dev)
        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) ||