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.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4060 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2006-06-23 19:10:41 +00:00
1 parent d98d0c0185
commit 21a1be7e49
2 files changed
+1 -4

No files matched your search

-4
View File
@@ -166,10 +166,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 ||