From 21a1be7e4982082991f6afda59594b0f57855f27 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 23 Jun 2006 19:10:41 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + kernel/busses/i2c-i801.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 4b050819..cdad9f9e 100644 --- a/CHANGES +++ b/CHANGES @@ -17,6 +17,7 @@ lm_sensors CHANGES file Module i2c-i801: Disable PEC mode after every transaction (2.6 backport) Add ICH8 support (2.6 backport) Fix block transaction poll loops (2.6 backport) + Remove PCI function check (2.6 backport) Module i2c-nforce2: Add nForce4 MCP51, MCP55 support (2.6 backport) Module i2c-piix4: Add ServerWorks HT-1000 support (2.6 backport) Add ATI IXP200, IXP300, IXP400 support (2.6 backport) diff --git a/kernel/busses/i2c-i801.c b/kernel/busses/i2c-i801.c index a53c9ec0..76455f05 100644 --- a/kernel/busses/i2c-i801.c +++ b/kernel/busses/i2c-i801.c @@ -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 ||