Commit 952bbcb0 authored by Bjorn Helgaas's avatar Bjorn Helgaas

PCI: Remove includes of asm/pci-bridge.h

Drivers should include asm/pci-bridge.h only when they need the arch-
specific things provided there.  Outside of the arch/ directories, the only
drivers that actually need things provided by asm/pci-bridge.h are the
powerpc RPA hotplug drivers in drivers/pci/hotplug/rpa*.

Remove the includes of asm/pci-bridge.h from the other drivers, adding an
include of linux/pci.h if necessary.
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent b6b83f7f
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/pci.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
#include <scsi/scsi_host.h> #include <scsi/scsi_host.h>
...@@ -30,7 +31,6 @@ ...@@ -30,7 +31,6 @@
#include <asm/macio.h> #include <asm/macio.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/dbdma.h> #include <asm/dbdma.h>
#include <asm/pci-bridge.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/mediabay.h> #include <asm/mediabay.h>
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <asm/uninorth.h> #include <asm/uninorth.h>
#include <asm/pci-bridge.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include "agp.h" #include "agp.h"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#endif /* CONFIG_PPC_PMAC */ #endif /* CONFIG_PPC_PMAC */
/* from radeon_legacy_encoder.c */ /* from radeon_legacy_encoder.c */
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#ifdef CONFIG_PPC_PMAC #ifdef CONFIG_PPC_PMAC
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#endif #endif
#define DRV_NAME "pdc202xx_new" #define DRV_NAME "pdc202xx_new"
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include <asm/io.h> #include <asm/io.h>
#include <asm/dbdma.h> #include <asm/dbdma.h>
#include <asm/ide.h> #include <asm/ide.h>
#include <asm/pci-bridge.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/sections.h> #include <asm/sections.h>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <asm/macio.h> #include <asm/macio.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#undef DEBUG #undef DEBUG
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <asm/opal.h> #include <asm/opal.h>
#include <asm/msi_bitmap.h> #include <asm/msi_bitmap.h>
#include <asm/pci-bridge.h> /* for struct pci_controller */
#include <asm/pnv-pci.h> #include <asm/pnv-pci.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#endif #endif
#ifdef CONFIG_PPC_PMAC #ifdef CONFIG_PPC_PMAC
#include <asm/pci-bridge.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <asm/pci-bridge.h>
#include <net/checksum.h> #include <net/checksum.h>
#include "spider_net.h" #include "spider_net.h"
......
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pci.h>
#include <asm/dbdma.h> #include <asm/dbdma.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#include <asm/macio.h> #include <asm/macio.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/pci.h>
#include <asm/dbdma.h> #include <asm/dbdma.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
...@@ -38,7 +39,6 @@ ...@@ -38,7 +39,6 @@
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/pci-bridge.h>
#include <asm/macio.h> #include <asm/macio.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#ifdef CONFIG_PPC_PMAC #ifdef CONFIG_PPC_PMAC
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/pci-bridge.h>
#include <asm/prom.h> #include <asm/prom.h>
#endif #endif
......
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#include "../macmodes.h" #include "../macmodes.h"
#endif #endif
......
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
#ifdef CONFIG_PPC #ifdef CONFIG_PPC
#include <asm/pci-bridge.h>
#include "../macmodes.h" #include "../macmodes.h"
#ifdef CONFIG_BOOTX_TEXT #ifdef CONFIG_BOOTX_TEXT
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#if defined(CONFIG_PPC) #if defined(CONFIG_PPC)
#include <linux/nvram.h> #include <linux/nvram.h>
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#include "macmodes.h" #include "macmodes.h"
#endif #endif
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
#if defined(CONFIG_PPC_PMAC) #if defined(CONFIG_PPC_PMAC)
#include <asm/prom.h> #include <asm/prom.h>
#include <asm/pci-bridge.h>
#include "../macmodes.h" #include "../macmodes.h"
#endif #endif
......
...@@ -28,10 +28,6 @@ ...@@ -28,10 +28,6 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <asm/io.h> #include <asm/io.h>
#ifdef CONFIG_PPC64
#include <asm/pci-bridge.h>
#endif
#ifdef CONFIG_PPC32 #ifdef CONFIG_PPC32
#include <asm/bootx.h> #include <asm/bootx.h>
#endif #endif
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "pmac.h" #include "pmac.h"
#include <sound/pcm_params.h> #include <sound/pcm_params.h>
#include <asm/pmac_feature.h> #include <asm/pmac_feature.h>
#include <asm/pci-bridge.h>
/* fixed frequency table for awacs, screamer, burgundy, DACA (44100 max) */ /* fixed frequency table for awacs, screamer, burgundy, DACA (44100 max) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment