提交 520e64d5 编写于 作者: J Jean Delvare 提交者: Greg Kroah-Hartman

[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: NJean Delvare <khali@linux-fr.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 d8db8f98
...@@ -107,10 +107,6 @@ static int i801_setup(struct pci_dev *dev) ...@@ -107,10 +107,6 @@ static int i801_setup(struct pci_dev *dev)
int error_return = 0; int error_return = 0;
unsigned char temp; 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; I801_dev = dev;
if ((dev->device == PCI_DEVICE_ID_INTEL_82801DB_3) || if ((dev->device == PCI_DEVICE_ID_INTEL_82801DB_3) ||
(dev->device == PCI_DEVICE_ID_INTEL_82801EB_3) || (dev->device == PCI_DEVICE_ID_INTEL_82801EB_3) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册