Skip to contentSkip to conversation

PNP: Fix duplicate included pci.h

PATCH Applied Tian Tao 2 participants 2 messages Sep 14, 2020 – Sep 25, 2020

Subsystems (2)
lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 PNP: Fix duplicate included pci.h

linux/pci.h is included more than once, Remove the one that isn't necessary.

---
 drivers/pnp/quirks.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pnp/quirks.c +0 -2
index de99f37..ac98b99 100644
@@ -226,8 +226,6 @@ static void quirk_ad1815_mpu_resources(struct pnp_dev *dev)
 	dev_info(&dev->dev, "made independent IRQ optional\n");
 }
 
-#include <linux/pci.h>
-
 static void quirk_system_pci_resources(struct pnp_dev *dev)
 {
 	struct pci_dev *pdev = NULL;
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 14 lines · Tian Tao

linux/pci.h is included more than once, Remove the one that isn't necessary.

---
 drivers/pnp/quirks.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pnp/quirks.c +0 -0
index de99f37..ac98b99 100644

drivers/pnp/quirks.c static void quirk_ad1815_mpu_resources(struct pnp_dev *dev)

Quoted 9 lines
drivers/pnp/quirks.c +0 -3
@@ -226,8 +226,6 @@ static void quirk_ad1815_mpu_resources(struct pnp_dev *dev)
        dev_info(&dev->dev, "made independent IRQ optional\n");
 }
 
-#include <linux/pci.h>
-
 static void quirk_system_pci_resources(struct pnp_dev *dev)
 {
        struct pci_dev *pdev = NULL;
--

Applied as 5.10 material with some subject and changelog edits, thanks!