summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-02-05 15:58:12 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-02-05 17:29:28 -0500
commit952bbcb0781bd1341f6a9f5c96fc32737392c04a (patch)
treea83655d86bf160aa40a0cedfac4e60c86a7a7080
parentb6b83f7fdae7cae5260b907510619a47bd29cd70 (diff)
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: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--drivers/ata/pata_macio.c2
-rw-r--r--drivers/char/agp/uninorth-agp.c1
-rw-r--r--drivers/gpu/drm/radeon/radeon_combios.c1
-rw-r--r--drivers/ide/pdc202xx_new.c1
-rw-r--r--drivers/ide/pmac.c1
-rw-r--r--drivers/macintosh/macio_asic.c1
-rw-r--r--drivers/misc/cxl/pci.c1
-rw-r--r--drivers/net/ethernet/sun/sungem.c1
-rw-r--r--drivers/net/ethernet/toshiba/spider_net.c1
-rw-r--r--drivers/scsi/mac53c94.c2
-rw-r--r--drivers/scsi/mesh.c2
-rw-r--r--drivers/usb/core/hcd-pci.c1
-rw-r--r--drivers/video/fbdev/aty/aty128fb.c1
-rw-r--r--drivers/video/fbdev/aty/radeon_base.c1
-rw-r--r--drivers/video/fbdev/imsttfb.c1
-rw-r--r--drivers/video/fbdev/matrox/matroxfb_base.h1
-rw-r--r--drivers/video/fbdev/offb.c4
-rw-r--r--sound/ppc/pmac.c1
18 files changed, 3 insertions, 21 deletions
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c
index e3d4b059fcd1..e347e7acd8ed 100644
--- a/drivers/ata/pata_macio.c
+++ b/drivers/ata/pata_macio.c
@@ -22,6 +22,7 @@
22#include <linux/scatterlist.h> 22#include <linux/scatterlist.h>
23#include <linux/of.h> 23#include <linux/of.h>
24#include <linux/gfp.h> 24#include <linux/gfp.h>
25#include <linux/pci.h>
25 26
26#include <scsi/scsi.h> 27#include <scsi/scsi.h>
27#include <scsi/scsi_host.h> 28#include <scsi/scsi_host.h>
@@ -30,7 +31,6 @@
30#include <asm/macio.h> 31#include <asm/macio.h>
31#include <asm/io.h> 32#include <asm/io.h>
32#include <asm/dbdma.h> 33#include <asm/dbdma.h>
33#include <asm/pci-bridge.h>
34#include <asm/machdep.h> 34#include <asm/machdep.h>
35#include <asm/pmac_feature.h> 35#include <asm/pmac_feature.h>
36#include <asm/mediabay.h> 36#include <asm/mediabay.h>
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c
index 05755441250c..fdced547ad59 100644
--- a/drivers/char/agp/uninorth-agp.c
+++ b/drivers/char/agp/uninorth-agp.c
@@ -10,7 +10,6 @@
10#include <linux/delay.h> 10#include <linux/delay.h>
11#include <linux/vmalloc.h> 11#include <linux/vmalloc.h>
12#include <asm/uninorth.h> 12#include <asm/uninorth.h>
13#include <asm/pci-bridge.h>
14#include <asm/prom.h> 13#include <asm/prom.h>
15#include <asm/pmac_feature.h> 14#include <asm/pmac_feature.h>
16#include "agp.h" 15#include "agp.h"
diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c
index a9b01bcf7d0a..432480ff9d22 100644
--- a/drivers/gpu/drm/radeon/radeon_combios.c
+++ b/drivers/gpu/drm/radeon/radeon_combios.c
@@ -34,7 +34,6 @@
34#include <asm/machdep.h> 34#include <asm/machdep.h>
35#include <asm/pmac_feature.h> 35#include <asm/pmac_feature.h>
36#include <asm/prom.h> 36#include <asm/prom.h>
37#include <asm/pci-bridge.h>
38#endif /* CONFIG_PPC_PMAC */ 37#endif /* CONFIG_PPC_PMAC */
39 38
40/* from radeon_legacy_encoder.c */ 39/* from radeon_legacy_encoder.c */
diff --git a/drivers/ide/pdc202xx_new.c b/drivers/ide/pdc202xx_new.c
index 9ad014a7afc7..b33646be699c 100644
--- a/drivers/ide/pdc202xx_new.c
+++ b/drivers/ide/pdc202xx_new.c
@@ -28,7 +28,6 @@
28 28
29#ifdef CONFIG_PPC_PMAC 29#ifdef CONFIG_PPC_PMAC
30#include <asm/prom.h> 30#include <asm/prom.h>
31#include <asm/pci-bridge.h>
32#endif 31#endif
33 32
34#define DRV_NAME "pdc202xx_new" 33#define DRV_NAME "pdc202xx_new"
diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
index 96a345248224..7f0434f7e486 100644
--- a/drivers/ide/pmac.c
+++ b/drivers/ide/pmac.c
@@ -40,7 +40,6 @@
40#include <asm/io.h> 40#include <asm/io.h>
41#include <asm/dbdma.h> 41#include <asm/dbdma.h>
42#include <asm/ide.h> 42#include <asm/ide.h>
43#include <asm/pci-bridge.h>
44#include <asm/machdep.h> 43#include <asm/machdep.h>
45#include <asm/pmac_feature.h> 44#include <asm/pmac_feature.h>
46#include <asm/sections.h> 45#include <asm/sections.h>
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index 4f12c6f01fe7..b6819f0fc608 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -31,7 +31,6 @@
31#include <asm/macio.h> 31#include <asm/macio.h>
32#include <asm/pmac_feature.h> 32#include <asm/pmac_feature.h>
33#include <asm/prom.h> 33#include <asm/prom.h>
34#include <asm/pci-bridge.h>
35 34
36#undef DEBUG 35#undef DEBUG
37 36
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index 4c1903f781fc..a21403238a4a 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -19,7 +19,6 @@
19#include <linux/delay.h> 19#include <linux/delay.h>
20#include <asm/opal.h> 20#include <asm/opal.h>
21#include <asm/msi_bitmap.h> 21#include <asm/msi_bitmap.h>
22#include <asm/pci-bridge.h> /* for struct pci_controller */
23#include <asm/pnv-pci.h> 22#include <asm/pnv-pci.h>
24#include <asm/io.h> 23#include <asm/io.h>
25 24
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c
index e23a642357e7..2437227712dc 100644
--- a/drivers/net/ethernet/sun/sungem.c
+++ b/drivers/net/ethernet/sun/sungem.c
@@ -51,7 +51,6 @@
51#endif 51#endif
52 52
53#ifdef CONFIG_PPC_PMAC 53#ifdef CONFIG_PPC_PMAC
54#include <asm/pci-bridge.h>
55#include <asm/prom.h> 54#include <asm/prom.h>
56#include <asm/machdep.h> 55#include <asm/machdep.h>
57#include <asm/pmac_feature.h> 56#include <asm/pmac_feature.h>
diff --git a/drivers/net/ethernet/toshiba/spider_net.c b/drivers/net/ethernet/toshiba/spider_net.c
index 3c54a2cae5df..67610270d171 100644
--- a/drivers/net/ethernet/toshiba/spider_net.c
+++ b/drivers/net/ethernet/toshiba/spider_net.c
@@ -48,7 +48,6 @@
48#include <linux/wait.h> 48#include <linux/wait.h>
49#include <linux/workqueue.h> 49#include <linux/workqueue.h>
50#include <linux/bitops.h> 50#include <linux/bitops.h>
51#include <asm/pci-bridge.h>
52#include <net/checksum.h> 51#include <net/checksum.h>
53 52
54#include "spider_net.h" 53#include "spider_net.h"
diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c
index 141226631429..a6682c508c4c 100644
--- a/drivers/scsi/mac53c94.c
+++ b/drivers/scsi/mac53c94.c
@@ -18,11 +18,11 @@
18#include <linux/spinlock.h> 18#include <linux/spinlock.h>
19#include <linux/interrupt.h> 19#include <linux/interrupt.h>
20#include <linux/module.h> 20#include <linux/module.h>
21#include <linux/pci.h>
21#include <asm/dbdma.h> 22#include <asm/dbdma.h>
22#include <asm/io.h> 23#include <asm/io.h>
23#include <asm/pgtable.h> 24#include <asm/pgtable.h>
24#include <asm/prom.h> 25#include <asm/prom.h>
25#include <asm/pci-bridge.h>
26#include <asm/macio.h> 26#include <asm/macio.h>
27 27
28#include <scsi/scsi.h> 28#include <scsi/scsi.h>
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c
index 555367f00228..1753e42826dd 100644
--- a/drivers/scsi/mesh.c
+++ b/drivers/scsi/mesh.c
@@ -29,6 +29,7 @@
29#include <linux/interrupt.h> 29#include <linux/interrupt.h>
30#include <linux/reboot.h> 30#include <linux/reboot.h>
31#include <linux/spinlock.h> 31#include <linux/spinlock.h>
32#include <linux/pci.h>
32#include <asm/dbdma.h> 33#include <asm/dbdma.h>
33#include <asm/io.h> 34#include <asm/io.h>
34#include <asm/pgtable.h> 35#include <asm/pgtable.h>
@@ -38,7 +39,6 @@
38#include <asm/processor.h> 39#include <asm/processor.h>
39#include <asm/machdep.h> 40#include <asm/machdep.h>
40#include <asm/pmac_feature.h> 41#include <asm/pmac_feature.h>
41#include <asm/pci-bridge.h>
42#include <asm/macio.h> 42#include <asm/macio.h>
43 43
44#include <scsi/scsi.h> 44#include <scsi/scsi.h>
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
index 9eb1cff28bd4..c3640f8a8fb3 100644
--- a/drivers/usb/core/hcd-pci.c
+++ b/drivers/usb/core/hcd-pci.c
@@ -28,7 +28,6 @@
28#ifdef CONFIG_PPC_PMAC 28#ifdef CONFIG_PPC_PMAC
29#include <asm/machdep.h> 29#include <asm/machdep.h>
30#include <asm/pmac_feature.h> 30#include <asm/pmac_feature.h>
31#include <asm/pci-bridge.h>
32#include <asm/prom.h> 31#include <asm/prom.h>
33#endif 32#endif
34 33
diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c
index c42ce2fdfd44..0a4626886b00 100644
--- a/drivers/video/fbdev/aty/aty128fb.c
+++ b/drivers/video/fbdev/aty/aty128fb.c
@@ -68,7 +68,6 @@
68#include <asm/machdep.h> 68#include <asm/machdep.h>
69#include <asm/pmac_feature.h> 69#include <asm/pmac_feature.h>
70#include <asm/prom.h> 70#include <asm/prom.h>
71#include <asm/pci-bridge.h>
72#include "../macmodes.h" 71#include "../macmodes.h"
73#endif 72#endif
74 73
diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c
index ce0b1d05a388..218339a4edaa 100644
--- a/drivers/video/fbdev/aty/radeon_base.c
+++ b/drivers/video/fbdev/aty/radeon_base.c
@@ -76,7 +76,6 @@
76 76
77#ifdef CONFIG_PPC 77#ifdef CONFIG_PPC
78 78
79#include <asm/pci-bridge.h>
80#include "../macmodes.h" 79#include "../macmodes.h"
81 80
82#ifdef CONFIG_BOOTX_TEXT 81#ifdef CONFIG_BOOTX_TEXT
diff --git a/drivers/video/fbdev/imsttfb.c b/drivers/video/fbdev/imsttfb.c
index 9b167f7ef6c6..4363c64d74e8 100644
--- a/drivers/video/fbdev/imsttfb.c
+++ b/drivers/video/fbdev/imsttfb.c
@@ -33,7 +33,6 @@
33#if defined(CONFIG_PPC) 33#if defined(CONFIG_PPC)
34#include <linux/nvram.h> 34#include <linux/nvram.h>
35#include <asm/prom.h> 35#include <asm/prom.h>
36#include <asm/pci-bridge.h>
37#include "macmodes.h" 36#include "macmodes.h"
38#endif 37#endif
39 38
diff --git a/drivers/video/fbdev/matrox/matroxfb_base.h b/drivers/video/fbdev/matrox/matroxfb_base.h
index 09b02cd1eb0e..7a90ea2c4613 100644
--- a/drivers/video/fbdev/matrox/matroxfb_base.h
+++ b/drivers/video/fbdev/matrox/matroxfb_base.h
@@ -47,7 +47,6 @@
47 47
48#if defined(CONFIG_PPC_PMAC) 48#if defined(CONFIG_PPC_PMAC)
49#include <asm/prom.h> 49#include <asm/prom.h>
50#include <asm/pci-bridge.h>
51#include "../macmodes.h" 50#include "../macmodes.h"
52#endif 51#endif
53 52
diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
index 43a0a52fc527..fb60a8f0cc94 100644
--- a/drivers/video/fbdev/offb.c
+++ b/drivers/video/fbdev/offb.c
@@ -28,10 +28,6 @@
28#include <linux/pci.h> 28#include <linux/pci.h>
29#include <asm/io.h> 29#include <asm/io.h>
30 30
31#ifdef CONFIG_PPC64
32#include <asm/pci-bridge.h>
33#endif
34
35#ifdef CONFIG_PPC32 31#ifdef CONFIG_PPC32
36#include <asm/bootx.h> 32#include <asm/bootx.h>
37#endif 33#endif
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c
index 0095a80a997f..a5843fc5ff20 100644
--- a/sound/ppc/pmac.c
+++ b/sound/ppc/pmac.c
@@ -34,7 +34,6 @@
34#include "pmac.h" 34#include "pmac.h"
35#include <sound/pcm_params.h> 35#include <sound/pcm_params.h>
36#include <asm/pmac_feature.h> 36#include <asm/pmac_feature.h>
37#include <asm/pci-bridge.h>
38 37
39 38
40/* fixed frequency table for awacs, screamer, burgundy, DACA (44100 max) */ 39/* fixed frequency table for awacs, screamer, burgundy, DACA (44100 max) */