diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-08-06 23:15:51 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-09-29 21:37:01 +0200 |
commit | e462aa7e39b5b6f70bc993d5ce50f7cc2e71182a (patch) | |
tree | 07d2ef6775eeed55ee24fcd40a5d845c3614c88d /drivers/i2c | |
parent | i2c: i801: Improve is_dell_system_with_lis3lv02d (diff) | |
download | linux-e462aa7e39b5b6f70bc993d5ce50f7cc2e71182a.tar.xz linux-e462aa7e39b5b6f70bc993d5ce50f7cc2e71182a.zip |
i2c: i801: Remove not needed check for PCI_COMMAND_INTX_DISABLE
do_pci_enable_device() takes care that PCI_COMMAND_INTX_DISABLE
is cleared if a legacy interrupt is used.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index f56060fcf5ac..7fa06b85fa97 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1827,19 +1827,12 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) priv->features &= ~FEATURE_IRQ; if (priv->features & FEATURE_IRQ) { - u16 pcictl, pcists; + u16 pcists; /* Complain if an interrupt is already pending */ pci_read_config_word(priv->pci_dev, PCI_STATUS, &pcists); if (pcists & PCI_STATUS_INTERRUPT) dev_warn(&dev->dev, "An interrupt is pending!\n"); - - /* Check if interrupts have been disabled */ - pci_read_config_word(priv->pci_dev, PCI_COMMAND, &pcictl); - if (pcictl & PCI_COMMAND_INTX_DISABLE) { - dev_info(&dev->dev, "Interrupts are disabled\n"); - priv->features &= ~FEATURE_IRQ; - } } if (priv->features & FEATURE_IRQ) { |