diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-06-12 15:51:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-22 14:10:35 -0400 |
commit | 520e64d5c081c76b77b4ee87d241cd3e40edc43a (patch) | |
tree | 7ff6d4868a5be78b10e7a84927c18fc3c42cc538 /drivers/i2c/busses/i2c-i801.c | |
parent | d8db8f98562c1e358e42503bb920f75f15a5c6d2 (diff) |
[PATCH] i2c-i801: Remove PCI function check
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 0d5374cce9cc..b651493375ca 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c | |||
@@ -107,10 +107,6 @@ static int i801_setup(struct pci_dev *dev) | |||
107 | int error_return = 0; | 107 | int error_return = 0; |
108 | unsigned char temp; | 108 | unsigned char temp; |
109 | 109 | ||
110 | /* Note: we keep on searching until we have found 'function 3' */ | ||
111 | if(PCI_FUNC(dev->devfn) != 3) | ||
112 | return -ENODEV; | ||
113 | |||
114 | I801_dev = dev; | 110 | I801_dev = dev; |
115 | if ((dev->device == PCI_DEVICE_ID_INTEL_82801DB_3) || | 111 | if ((dev->device == PCI_DEVICE_ID_INTEL_82801DB_3) || |
116 | (dev->device == PCI_DEVICE_ID_INTEL_82801EB_3) || | 112 | (dev->device == PCI_DEVICE_ID_INTEL_82801EB_3) || |