diff mbox series

PNP: Fix duplicate included pci.h

Message ID 1600044290-12475-1-git-send-email-tiantao6@hisilicon.com (mailing list archive)
State Mainlined, archived
Headers show
Series PNP: Fix duplicate included pci.h | expand

Commit Message

Tian Tao Sept. 14, 2020, 12:44 a.m. UTC
linux/pci.h is included more than once, Remove the one that isn't
necessary.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/pnp/quirks.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Rafael J. Wysocki Sept. 25, 2020, 4:02 p.m. UTC | #1
On Mon, Sep 14, 2020 at 2:47 AM Tian Tao <tiantao6@hisilicon.com> wrote:
>
> linux/pci.h is included more than once, Remove the one that isn't
> necessary.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  drivers/pnp/quirks.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c
> index de99f37..ac98b99 100644
> --- a/drivers/pnp/quirks.c
> +++ b/drivers/pnp/quirks.c
> @@ -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!
diff mbox series

Patch

diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c
index de99f37..ac98b99 100644
--- a/drivers/pnp/quirks.c
+++ b/drivers/pnp/quirks.c
@@ -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;