diff options
Diffstat (limited to 'arch/arm')
63 files changed, 83 insertions, 66 deletions
diff --git a/arch/arm/common/it8152.c b/arch/arm/common/it8152.c index 14ad62e16dd..a7934ba9e1d 100644 --- a/arch/arm/common/it8152.c +++ b/arch/arm/common/it8152.c | |||
@@ -144,7 +144,7 @@ void it8152_irq_demux(unsigned int irq, struct irq_desc *desc) | |||
144 | } | 144 | } |
145 | 145 | ||
146 | /* mapping for on-chip devices */ | 146 | /* mapping for on-chip devices */ |
147 | int __init it8152_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 147 | int __init it8152_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
148 | { | 148 | { |
149 | if ((dev->vendor == PCI_VENDOR_ID_ITE) && | 149 | if ((dev->vendor == PCI_VENDOR_ID_ITE) && |
150 | (dev->device == PCI_DEVICE_ID_ITE_8152)) { | 150 | (dev->device == PCI_DEVICE_ID_ITE_8152)) { |
diff --git a/arch/arm/include/asm/hardware/it8152.h b/arch/arm/include/asm/hardware/it8152.h index b2f95c72287..b3fea38d55c 100644 --- a/arch/arm/include/asm/hardware/it8152.h +++ b/arch/arm/include/asm/hardware/it8152.h | |||
@@ -105,7 +105,7 @@ struct pci_sys_data; | |||
105 | 105 | ||
106 | extern void it8152_irq_demux(unsigned int irq, struct irq_desc *desc); | 106 | extern void it8152_irq_demux(unsigned int irq, struct irq_desc *desc); |
107 | extern void it8152_init_irq(void); | 107 | extern void it8152_init_irq(void); |
108 | extern int it8152_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin); | 108 | extern int it8152_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); |
109 | extern int it8152_pci_setup(int nr, struct pci_sys_data *sys); | 109 | extern int it8152_pci_setup(int nr, struct pci_sys_data *sys); |
110 | extern struct pci_bus *it8152_pci_scan_bus(int nr, struct pci_sys_data *sys); | 110 | extern struct pci_bus *it8152_pci_scan_bus(int nr, struct pci_sys_data *sys); |
111 | 111 | ||
diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h index 16330bd0657..186efd4e05c 100644 --- a/arch/arm/include/asm/mach/pci.h +++ b/arch/arm/include/asm/mach/pci.h | |||
@@ -25,7 +25,7 @@ struct hw_pci { | |||
25 | void (*preinit)(void); | 25 | void (*preinit)(void); |
26 | void (*postinit)(void); | 26 | void (*postinit)(void); |
27 | u8 (*swizzle)(struct pci_dev *dev, u8 *pin); | 27 | u8 (*swizzle)(struct pci_dev *dev, u8 *pin); |
28 | int (*map_irq)(struct pci_dev *dev, u8 slot, u8 pin); | 28 | int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); |
29 | }; | 29 | }; |
30 | 30 | ||
31 | /* | 31 | /* |
@@ -44,7 +44,7 @@ struct pci_sys_data { | |||
44 | /* Bridge swizzling */ | 44 | /* Bridge swizzling */ |
45 | u8 (*swizzle)(struct pci_dev *, u8 *); | 45 | u8 (*swizzle)(struct pci_dev *, u8 *); |
46 | /* IRQ mapping */ | 46 | /* IRQ mapping */ |
47 | int (*map_irq)(struct pci_dev *, u8, u8); | 47 | int (*map_irq)(const struct pci_dev *, u8, u8); |
48 | struct hw_pci *hw; | 48 | struct hw_pci *hw; |
49 | void *private_data; /* platform controller private data */ | 49 | void *private_data; /* platform controller private data */ |
50 | }; | 50 | }; |
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index e4ee050aad7..d6df359408f 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c | |||
@@ -476,7 +476,7 @@ static u8 __devinit pcibios_swizzle(struct pci_dev *dev, u8 *pin) | |||
476 | /* | 476 | /* |
477 | * Map a slot/pin to an IRQ. | 477 | * Map a slot/pin to an IRQ. |
478 | */ | 478 | */ |
479 | static int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 479 | static int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
480 | { | 480 | { |
481 | struct pci_sys_data *sys = dev->sysdata; | 481 | struct pci_sys_data *sys = dev->sysdata; |
482 | int irq = -1; | 482 | int irq = -1; |
diff --git a/arch/arm/mach-cns3xxx/pcie.c b/arch/arm/mach-cns3xxx/pcie.c index a4ec080908b..06fd25d70ae 100644 --- a/arch/arm/mach-cns3xxx/pcie.c +++ b/arch/arm/mach-cns3xxx/pcie.c | |||
@@ -172,7 +172,7 @@ static struct pci_bus *cns3xxx_pci_scan_bus(int nr, struct pci_sys_data *sys) | |||
172 | return pci_scan_bus(sys->busnr, &cns3xxx_pcie_ops, sys); | 172 | return pci_scan_bus(sys->busnr, &cns3xxx_pcie_ops, sys); |
173 | } | 173 | } |
174 | 174 | ||
175 | static int cns3xxx_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 175 | static int cns3xxx_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
176 | { | 176 | { |
177 | struct cns3xxx_pcie *cnspci = pdev_to_cnspci(dev); | 177 | struct cns3xxx_pcie *cnspci = pdev_to_cnspci(dev); |
178 | int irq = cnspci->irqs[slot]; | 178 | int irq = cnspci->irqs[slot]; |
diff --git a/arch/arm/mach-dove/pcie.c b/arch/arm/mach-dove/pcie.c index c2f1c4767f2..aa2b3a09a51 100644 --- a/arch/arm/mach-dove/pcie.c +++ b/arch/arm/mach-dove/pcie.c | |||
@@ -193,7 +193,7 @@ dove_pcie_scan_bus(int nr, struct pci_sys_data *sys) | |||
193 | return bus; | 193 | return bus; |
194 | } | 194 | } |
195 | 195 | ||
196 | static int __init dove_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 196 | static int __init dove_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
197 | { | 197 | { |
198 | struct pcie_port *pp = bus_to_port(dev->bus->number); | 198 | struct pcie_port *pp = bus_to_port(dev->bus->number); |
199 | 199 | ||
diff --git a/arch/arm/mach-footbridge/cats-pci.c b/arch/arm/mach-footbridge/cats-pci.c index ae3e1c8c758..32321f66dec 100644 --- a/arch/arm/mach-footbridge/cats-pci.c +++ b/arch/arm/mach-footbridge/cats-pci.c | |||
@@ -16,7 +16,7 @@ | |||
16 | /* cats host-specific stuff */ | 16 | /* cats host-specific stuff */ |
17 | static int irqmap_cats[] __initdata = { IRQ_PCI, IRQ_IN0, IRQ_IN1, IRQ_IN3 }; | 17 | static int irqmap_cats[] __initdata = { IRQ_PCI, IRQ_IN0, IRQ_IN1, IRQ_IN3 }; |
18 | 18 | ||
19 | static int __init cats_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 19 | static int __init cats_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
20 | { | 20 | { |
21 | if (dev->irq >= 255) | 21 | if (dev->irq >= 255) |
22 | return -1; /* not a valid interrupt. */ | 22 | return -1; /* not a valid interrupt. */ |
diff --git a/arch/arm/mach-footbridge/ebsa285-pci.c b/arch/arm/mach-footbridge/ebsa285-pci.c index e5ab5bddbc8..511c673ffa9 100644 --- a/arch/arm/mach-footbridge/ebsa285-pci.c +++ b/arch/arm/mach-footbridge/ebsa285-pci.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | static int irqmap_ebsa285[] __initdata = { IRQ_IN3, IRQ_IN1, IRQ_IN0, IRQ_PCI }; | 16 | static int irqmap_ebsa285[] __initdata = { IRQ_IN3, IRQ_IN1, IRQ_IN0, IRQ_PCI }; |
17 | 17 | ||
18 | static int __init ebsa285_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 18 | static int __init ebsa285_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
19 | { | 19 | { |
20 | if (dev->vendor == PCI_VENDOR_ID_CONTAQ && | 20 | if (dev->vendor == PCI_VENDOR_ID_CONTAQ && |
21 | dev->device == PCI_DEVICE_ID_CONTAQ_82C693) | 21 | dev->device == PCI_DEVICE_ID_CONTAQ_82C693) |
diff --git a/arch/arm/mach-footbridge/netwinder-pci.c b/arch/arm/mach-footbridge/netwinder-pci.c index e263d6d54a0..62187610e17 100644 --- a/arch/arm/mach-footbridge/netwinder-pci.c +++ b/arch/arm/mach-footbridge/netwinder-pci.c | |||
@@ -17,7 +17,7 @@ | |||
17 | * We now use the slot ID instead of the device identifiers to select | 17 | * We now use the slot ID instead of the device identifiers to select |
18 | * which interrupt is routed where. | 18 | * which interrupt is routed where. |
19 | */ | 19 | */ |
20 | static int __init netwinder_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 20 | static int __init netwinder_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
21 | { | 21 | { |
22 | switch (slot) { | 22 | switch (slot) { |
23 | case 0: /* host bridge */ | 23 | case 0: /* host bridge */ |
diff --git a/arch/arm/mach-footbridge/personal-pci.c b/arch/arm/mach-footbridge/personal-pci.c index d5fca95afda..aeb651d914a 100644 --- a/arch/arm/mach-footbridge/personal-pci.c +++ b/arch/arm/mach-footbridge/personal-pci.c | |||
@@ -18,7 +18,8 @@ static int irqmap_personal_server[] __initdata = { | |||
18 | IRQ_DOORBELLHOST, IRQ_DMA1, IRQ_DMA2, IRQ_PCI | 18 | IRQ_DOORBELLHOST, IRQ_DMA1, IRQ_DMA2, IRQ_PCI |
19 | }; | 19 | }; |
20 | 20 | ||
21 | static int __init personal_server_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 21 | static int __init personal_server_map_irq(const struct pci_dev *dev, u8 slot, |
22 | u8 pin) | ||
22 | { | 23 | { |
23 | unsigned char line; | 24 | unsigned char line; |
24 | 25 | ||
diff --git a/arch/arm/mach-integrator/pci.c b/arch/arm/mach-integrator/pci.c index 2fdb95433f0..520b6bf81bb 100644 --- a/arch/arm/mach-integrator/pci.c +++ b/arch/arm/mach-integrator/pci.c | |||
@@ -95,7 +95,7 @@ static int irq_tab[4] __initdata = { | |||
95 | * map the specified device/slot/pin to an IRQ. This works out such | 95 | * map the specified device/slot/pin to an IRQ. This works out such |
96 | * that slot 9 pin 1 is INT0, pin 2 is INT1, and slot 10 pin 1 is INT1. | 96 | * that slot 9 pin 1 is INT0, pin 2 is INT1, and slot 10 pin 1 is INT1. |
97 | */ | 97 | */ |
98 | static int __init integrator_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 98 | static int __init integrator_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
99 | { | 99 | { |
100 | int intnr = ((slot - 9) + (pin - 1)) & 3; | 100 | int intnr = ((slot - 9) + (pin - 1)) & 3; |
101 | 101 | ||
diff --git a/arch/arm/mach-iop13xx/iq81340mc.c b/arch/arm/mach-iop13xx/iq81340mc.c index 9b5a63f5d07..23dfaffc586 100644 --- a/arch/arm/mach-iop13xx/iq81340mc.c +++ b/arch/arm/mach-iop13xx/iq81340mc.c | |||
@@ -30,7 +30,7 @@ | |||
30 | extern int init_atu; /* Flag to select which ATU(s) to initialize / disable */ | 30 | extern int init_atu; /* Flag to select which ATU(s) to initialize / disable */ |
31 | 31 | ||
32 | static int __init | 32 | static int __init |
33 | iq81340mc_pcix_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | 33 | iq81340mc_pcix_map_irq(const struct pci_dev *dev, u8 idsel, u8 pin) |
34 | { | 34 | { |
35 | switch (idsel) { | 35 | switch (idsel) { |
36 | case 1: | 36 | case 1: |
diff --git a/arch/arm/mach-iop13xx/pci.c b/arch/arm/mach-iop13xx/pci.c index 0690b1d7fd3..251c40897da 100644 --- a/arch/arm/mach-iop13xx/pci.c +++ b/arch/arm/mach-iop13xx/pci.c | |||
@@ -388,7 +388,7 @@ static int iop13xx_atue_pci_status(int clear) | |||
388 | } | 388 | } |
389 | 389 | ||
390 | static int | 390 | static int |
391 | iop13xx_pcie_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | 391 | iop13xx_pcie_map_irq(const struct pci_dev *dev, u8 idsel, u8 pin) |
392 | { | 392 | { |
393 | WARN_ON(idsel != 0); | 393 | WARN_ON(idsel != 0); |
394 | 394 | ||
diff --git a/arch/arm/mach-iop32x/em7210.c b/arch/arm/mach-iop32x/em7210.c index 779f924af30..6cbffbfc2bb 100644 --- a/arch/arm/mach-iop32x/em7210.c +++ b/arch/arm/mach-iop32x/em7210.c | |||
@@ -81,7 +81,7 @@ void __init em7210_map_io(void) | |||
81 | #define INTD IRQ_IOP32X_XINT3 | 81 | #define INTD IRQ_IOP32X_XINT3 |
82 | 82 | ||
83 | static int __init | 83 | static int __init |
84 | em7210_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 84 | em7210_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
85 | { | 85 | { |
86 | static int pci_irq_table[][4] = { | 86 | static int pci_irq_table[][4] = { |
87 | /* | 87 | /* |
diff --git a/arch/arm/mach-iop32x/glantank.c b/arch/arm/mach-iop32x/glantank.c index c6b6f9c5650..ceef5d4dce1 100644 --- a/arch/arm/mach-iop32x/glantank.c +++ b/arch/arm/mach-iop32x/glantank.c | |||
@@ -77,7 +77,7 @@ void __init glantank_map_io(void) | |||
77 | #define INTD IRQ_IOP32X_XINT3 | 77 | #define INTD IRQ_IOP32X_XINT3 |
78 | 78 | ||
79 | static int __init | 79 | static int __init |
80 | glantank_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 80 | glantank_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
81 | { | 81 | { |
82 | static int pci_irq_table[][4] = { | 82 | static int pci_irq_table[][4] = { |
83 | /* | 83 | /* |
diff --git a/arch/arm/mach-iop32x/iq31244.c b/arch/arm/mach-iop32x/iq31244.c index fde962c057f..3a62514dae7 100644 --- a/arch/arm/mach-iop32x/iq31244.c +++ b/arch/arm/mach-iop32x/iq31244.c | |||
@@ -103,7 +103,7 @@ void __init iq31244_map_io(void) | |||
103 | * EP80219/IQ31244 PCI. | 103 | * EP80219/IQ31244 PCI. |
104 | */ | 104 | */ |
105 | static int __init | 105 | static int __init |
106 | ep80219_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 106 | ep80219_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
107 | { | 107 | { |
108 | int irq; | 108 | int irq; |
109 | 109 | ||
@@ -139,7 +139,7 @@ static struct hw_pci ep80219_pci __initdata = { | |||
139 | }; | 139 | }; |
140 | 140 | ||
141 | static int __init | 141 | static int __init |
142 | iq31244_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 142 | iq31244_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
143 | { | 143 | { |
144 | int irq; | 144 | int irq; |
145 | 145 | ||
diff --git a/arch/arm/mach-iop32x/iq80321.c b/arch/arm/mach-iop32x/iq80321.c index 3a95950e873..35b7e6914d3 100644 --- a/arch/arm/mach-iop32x/iq80321.c +++ b/arch/arm/mach-iop32x/iq80321.c | |||
@@ -71,7 +71,7 @@ void __init iq80321_map_io(void) | |||
71 | * IQ80321 PCI. | 71 | * IQ80321 PCI. |
72 | */ | 72 | */ |
73 | static int __init | 73 | static int __init |
74 | iq80321_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 74 | iq80321_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
75 | { | 75 | { |
76 | int irq; | 76 | int irq; |
77 | 77 | ||
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c index 626aa375915..1a374eab600 100644 --- a/arch/arm/mach-iop32x/n2100.c +++ b/arch/arm/mach-iop32x/n2100.c | |||
@@ -78,7 +78,7 @@ void __init n2100_map_io(void) | |||
78 | * N2100 PCI. | 78 | * N2100 PCI. |
79 | */ | 79 | */ |
80 | static int __init | 80 | static int __init |
81 | n2100_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 81 | n2100_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
82 | { | 82 | { |
83 | int irq; | 83 | int irq; |
84 | 84 | ||
diff --git a/arch/arm/mach-iop33x/iq80331.c b/arch/arm/mach-iop33x/iq80331.c index c565f8d1e3a..637c0272d5e 100644 --- a/arch/arm/mach-iop33x/iq80331.c +++ b/arch/arm/mach-iop33x/iq80331.c | |||
@@ -54,7 +54,7 @@ static struct sys_timer iq80331_timer = { | |||
54 | * IQ80331 PCI. | 54 | * IQ80331 PCI. |
55 | */ | 55 | */ |
56 | static int __init | 56 | static int __init |
57 | iq80331_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 57 | iq80331_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
58 | { | 58 | { |
59 | int irq; | 59 | int irq; |
60 | 60 | ||
diff --git a/arch/arm/mach-iop33x/iq80332.c b/arch/arm/mach-iop33x/iq80332.c index 36a9efb254c..90a0436d725 100644 --- a/arch/arm/mach-iop33x/iq80332.c +++ b/arch/arm/mach-iop33x/iq80332.c | |||
@@ -54,7 +54,7 @@ static struct sys_timer iq80332_timer = { | |||
54 | * IQ80332 PCI. | 54 | * IQ80332 PCI. |
55 | */ | 55 | */ |
56 | static int __init | 56 | static int __init |
57 | iq80332_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 57 | iq80332_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
58 | { | 58 | { |
59 | int irq; | 59 | int irq; |
60 | 60 | ||
diff --git a/arch/arm/mach-ixp2000/enp2611.c b/arch/arm/mach-ixp2000/enp2611.c index 88663ab1d2a..62c60ade527 100644 --- a/arch/arm/mach-ixp2000/enp2611.c +++ b/arch/arm/mach-ixp2000/enp2611.c | |||
@@ -148,7 +148,8 @@ static struct pci_bus * __init enp2611_pci_scan_bus(int nr, | |||
148 | return pci_scan_bus(sys->busnr, &enp2611_pci_ops, sys); | 148 | return pci_scan_bus(sys->busnr, &enp2611_pci_ops, sys); |
149 | } | 149 | } |
150 | 150 | ||
151 | static int __init enp2611_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 151 | static int __init enp2611_pci_map_irq(const struct pci_dev *dev, u8 slot, |
152 | u8 pin) | ||
152 | { | 153 | { |
153 | int irq; | 154 | int irq; |
154 | 155 | ||
diff --git a/arch/arm/mach-ixp2000/ixdp2400.c b/arch/arm/mach-ixp2000/ixdp2400.c index dfffc1e817f..5bad1a8419b 100644 --- a/arch/arm/mach-ixp2000/ixdp2400.c +++ b/arch/arm/mach-ixp2000/ixdp2400.c | |||
@@ -78,7 +78,8 @@ int ixdp2400_pci_setup(int nr, struct pci_sys_data *sys) | |||
78 | return 1; | 78 | return 1; |
79 | } | 79 | } |
80 | 80 | ||
81 | static int __init ixdp2400_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 81 | static int __init ixdp2400_pci_map_irq(const struct pci_dev *dev, u8 slot, |
82 | u8 pin) | ||
82 | { | 83 | { |
83 | if (ixdp2x00_master_npu()) { | 84 | if (ixdp2x00_master_npu()) { |
84 | 85 | ||
diff --git a/arch/arm/mach-ixp2000/ixdp2800.c b/arch/arm/mach-ixp2000/ixdp2800.c index cd4c9bcff2b..3d3cef87646 100644 --- a/arch/arm/mach-ixp2000/ixdp2800.c +++ b/arch/arm/mach-ixp2000/ixdp2800.c | |||
@@ -161,7 +161,8 @@ static int __init ixdp2800_pci_setup(int nr, struct pci_sys_data *sys) | |||
161 | return 1; | 161 | return 1; |
162 | } | 162 | } |
163 | 163 | ||
164 | static int __init ixdp2800_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 164 | static int __init ixdp2800_pci_map_irq(const struct pci_dev *dev, u8 slot, |
165 | u8 pin) | ||
165 | { | 166 | { |
166 | if (ixdp2x00_master_npu()) { | 167 | if (ixdp2x00_master_npu()) { |
167 | 168 | ||
diff --git a/arch/arm/mach-ixp2000/ixdp2x01.c b/arch/arm/mach-ixp2000/ixdp2x01.c index 84835b20955..be2a254f137 100644 --- a/arch/arm/mach-ixp2000/ixdp2x01.c +++ b/arch/arm/mach-ixp2000/ixdp2x01.c | |||
@@ -252,7 +252,8 @@ void __init ixdp2x01_pci_preinit(void) | |||
252 | 252 | ||
253 | #define DEVPIN(dev, pin) ((pin) | ((dev) << 3)) | 253 | #define DEVPIN(dev, pin) ((pin) | ((dev) << 3)) |
254 | 254 | ||
255 | static int __init ixdp2x01_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 255 | static int __init ixdp2x01_pci_map_irq(const struct pci_dev *dev, u8 slot, |
256 | u8 pin) | ||
256 | { | 257 | { |
257 | u8 bus = dev->bus->number; | 258 | u8 bus = dev->bus->number; |
258 | u32 devpin = DEVPIN(PCI_SLOT(dev->devfn), pin); | 259 | u32 devpin = DEVPIN(PCI_SLOT(dev->devfn), pin); |
diff --git a/arch/arm/mach-ixp23xx/ixdp2351.c b/arch/arm/mach-ixp23xx/ixdp2351.c index 8dcba17c81e..ec028e35f40 100644 --- a/arch/arm/mach-ixp23xx/ixdp2351.c +++ b/arch/arm/mach-ixp23xx/ixdp2351.c | |||
@@ -168,7 +168,7 @@ void __init ixdp2351_init_irq(void) | |||
168 | */ | 168 | */ |
169 | #define DEVPIN(dev, pin) ((pin) | ((dev) << 3)) | 169 | #define DEVPIN(dev, pin) ((pin) | ((dev) << 3)) |
170 | 170 | ||
171 | static int __init ixdp2351_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 171 | static int __init ixdp2351_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
172 | { | 172 | { |
173 | u8 bus = dev->bus->number; | 173 | u8 bus = dev->bus->number; |
174 | u32 devpin = DEVPIN(PCI_SLOT(dev->devfn), pin); | 174 | u32 devpin = DEVPIN(PCI_SLOT(dev->devfn), pin); |
diff --git a/arch/arm/mach-ixp23xx/roadrunner.c b/arch/arm/mach-ixp23xx/roadrunner.c index 8fe0c627326..844551d2368 100644 --- a/arch/arm/mach-ixp23xx/roadrunner.c +++ b/arch/arm/mach-ixp23xx/roadrunner.c | |||
@@ -56,7 +56,8 @@ | |||
56 | #define INTC_PIN IXP23XX_GPIO_PIN_11 | 56 | #define INTC_PIN IXP23XX_GPIO_PIN_11 |
57 | #define INTD_PIN IXP23XX_GPIO_PIN_12 | 57 | #define INTD_PIN IXP23XX_GPIO_PIN_12 |
58 | 58 | ||
59 | static int __init roadrunner_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) | 59 | static int __init roadrunner_map_irq(const struct pci_dev *dev, u8 idsel, |
60 | u8 pin) | ||
60 | { | 61 | { |
61 | static int pci_card_slot_irq[] = {INTB, INTC, INTD, INTA}; | 62 | static int pci_card_slot_irq[] = {INTB, INTC, INTD, INTA}; |
62 | static int pmc_card_slot_irq[] = {INTA, INTB, INTC, INTD}; | 63 | static int pmc_card_slot_irq[] = {INTA, INTB, INTC, INTD}; |
diff --git a/arch/arm/mach-ixp4xx/avila-pci.c b/arch/arm/mach-ixp4xx/avila-pci.c index 162043ff29f..8fea0a3c524 100644 --- a/arch/arm/mach-ixp4xx/avila-pci.c +++ b/arch/arm/mach-ixp4xx/avila-pci.c | |||
@@ -46,7 +46,7 @@ void __init avila_pci_preinit(void) | |||
46 | ixp4xx_pci_preinit(); | 46 | ixp4xx_pci_preinit(); |
47 | } | 47 | } |
48 | 48 | ||
49 | static int __init avila_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 49 | static int __init avila_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
50 | { | 50 | { |
51 | static int pci_irq_table[IRQ_LINES] = { | 51 | static int pci_irq_table[IRQ_LINES] = { |
52 | IXP4XX_GPIO_IRQ(INTA), | 52 | IXP4XX_GPIO_IRQ(INTA), |
diff --git a/arch/arm/mach-ixp4xx/coyote-pci.c b/arch/arm/mach-ixp4xx/coyote-pci.c index 37fda7d6e83..71f5c9c60fc 100644 --- a/arch/arm/mach-ixp4xx/coyote-pci.c +++ b/arch/arm/mach-ixp4xx/coyote-pci.c | |||
@@ -37,7 +37,7 @@ void __init coyote_pci_preinit(void) | |||
37 | ixp4xx_pci_preinit(); | 37 | ixp4xx_pci_preinit(); |
38 | } | 38 | } |
39 | 39 | ||
40 | static int __init coyote_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 40 | static int __init coyote_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
41 | { | 41 | { |
42 | if (slot == SLOT0_DEVID) | 42 | if (slot == SLOT0_DEVID) |
43 | return IXP4XX_GPIO_IRQ(SLOT0_INTA); | 43 | return IXP4XX_GPIO_IRQ(SLOT0_INTA); |
diff --git a/arch/arm/mach-ixp4xx/dsmg600-pci.c b/arch/arm/mach-ixp4xx/dsmg600-pci.c index c7612010b3f..0532510b5e8 100644 --- a/arch/arm/mach-ixp4xx/dsmg600-pci.c +++ b/arch/arm/mach-ixp4xx/dsmg600-pci.c | |||
@@ -44,7 +44,7 @@ void __init dsmg600_pci_preinit(void) | |||
44 | ixp4xx_pci_preinit(); | 44 | ixp4xx_pci_preinit(); |
45 | } | 45 | } |
46 | 46 | ||
47 | static int __init dsmg600_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 47 | static int __init dsmg600_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
48 | { | 48 | { |
49 | static int pci_irq_table[MAX_DEV][IRQ_LINES] = { | 49 | static int pci_irq_table[MAX_DEV][IRQ_LINES] = { |
50 | { IXP4XX_GPIO_IRQ(INTE), -1, -1 }, | 50 | { IXP4XX_GPIO_IRQ(INTE), -1, -1 }, |
diff --git a/arch/arm/mach-ixp4xx/fsg-pci.c b/arch/arm/mach-ixp4xx/fsg-pci.c index 44ccde9d487..d2ac803328f 100644 --- a/arch/arm/mach-ixp4xx/fsg-pci.c +++ b/arch/arm/mach-ixp4xx/fsg-pci.c | |||
@@ -38,7 +38,7 @@ void __init fsg_pci_preinit(void) | |||
38 | ixp4xx_pci_preinit(); | 38 | ixp4xx_pci_preinit(); |
39 | } | 39 | } |
40 | 40 | ||
41 | static int __init fsg_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 41 | static int __init fsg_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
42 | { | 42 | { |
43 | static int pci_irq_table[IRQ_LINES] = { | 43 | static int pci_irq_table[IRQ_LINES] = { |
44 | IXP4XX_GPIO_IRQ(INTC), | 44 | IXP4XX_GPIO_IRQ(INTC), |
diff --git a/arch/arm/mach-ixp4xx/gateway7001-pci.c b/arch/arm/mach-ixp4xx/gateway7001-pci.c index fc112416887..76581fb467c 100644 --- a/arch/arm/mach-ixp4xx/gateway7001-pci.c +++ b/arch/arm/mach-ixp4xx/gateway7001-pci.c | |||
@@ -35,7 +35,8 @@ void __init gateway7001_pci_preinit(void) | |||
35 | ixp4xx_pci_preinit(); | 35 | ixp4xx_pci_preinit(); |
36 | } | 36 | } |
37 | 37 | ||
38 | static int __init gateway7001_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 38 | static int __init gateway7001_map_irq(const struct pci_dev *dev, u8 slot, |
39 | u8 pin) | ||
39 | { | 40 | { |
40 | if (slot == 1) | 41 | if (slot == 1) |
41 | return IRQ_IXP4XX_GPIO11; | 42 | return IRQ_IXP4XX_GPIO11; |
diff --git a/arch/arm/mach-ixp4xx/goramo_mlr.c b/arch/arm/mach-ixp4xx/goramo_mlr.c index 5f00ad224fe..7548d9a2efe 100644 --- a/arch/arm/mach-ixp4xx/goramo_mlr.c +++ b/arch/arm/mach-ixp4xx/goramo_mlr.c | |||
@@ -462,7 +462,7 @@ static void __init gmlr_pci_postinit(void) | |||
462 | } | 462 | } |
463 | } | 463 | } |
464 | 464 | ||
465 | static int __init gmlr_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 465 | static int __init gmlr_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
466 | { | 466 | { |
467 | switch(slot) { | 467 | switch(slot) { |
468 | case SLOT_ETHA: return IXP4XX_GPIO_IRQ(GPIO_IRQ_ETHA); | 468 | case SLOT_ETHA: return IXP4XX_GPIO_IRQ(GPIO_IRQ_ETHA); |
diff --git a/arch/arm/mach-ixp4xx/gtwx5715-pci.c b/arch/arm/mach-ixp4xx/gtwx5715-pci.c index 38cc0725dbd..d68fc068c38 100644 --- a/arch/arm/mach-ixp4xx/gtwx5715-pci.c +++ b/arch/arm/mach-ixp4xx/gtwx5715-pci.c | |||
@@ -49,7 +49,7 @@ void __init gtwx5715_pci_preinit(void) | |||
49 | } | 49 | } |
50 | 50 | ||
51 | 51 | ||
52 | static int __init gtwx5715_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 52 | static int __init gtwx5715_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
53 | { | 53 | { |
54 | int rc = -1; | 54 | int rc = -1; |
55 | 55 | ||
diff --git a/arch/arm/mach-ixp4xx/ixdp425-pci.c b/arch/arm/mach-ixp4xx/ixdp425-pci.c index 58f400417ea..fffd8c5e40b 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-pci.c +++ b/arch/arm/mach-ixp4xx/ixdp425-pci.c | |||
@@ -43,7 +43,7 @@ void __init ixdp425_pci_preinit(void) | |||
43 | ixp4xx_pci_preinit(); | 43 | ixp4xx_pci_preinit(); |
44 | } | 44 | } |
45 | 45 | ||
46 | static int __init ixdp425_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 46 | static int __init ixdp425_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
47 | { | 47 | { |
48 | static int pci_irq_table[IRQ_LINES] = { | 48 | static int pci_irq_table[IRQ_LINES] = { |
49 | IXP4XX_GPIO_IRQ(INTA), | 49 | IXP4XX_GPIO_IRQ(INTA), |
diff --git a/arch/arm/mach-ixp4xx/ixdpg425-pci.c b/arch/arm/mach-ixp4xx/ixdpg425-pci.c index e64f6d04148..34efe75015e 100644 --- a/arch/arm/mach-ixp4xx/ixdpg425-pci.c +++ b/arch/arm/mach-ixp4xx/ixdpg425-pci.c | |||
@@ -31,7 +31,7 @@ void __init ixdpg425_pci_preinit(void) | |||
31 | ixp4xx_pci_preinit(); | 31 | ixp4xx_pci_preinit(); |
32 | } | 32 | } |
33 | 33 | ||
34 | static int __init ixdpg425_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 34 | static int __init ixdpg425_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
35 | { | 35 | { |
36 | if (slot == 12 || slot == 13) | 36 | if (slot == 12 || slot == 13) |
37 | return IRQ_IXP4XX_GPIO7; | 37 | return IRQ_IXP4XX_GPIO7; |
diff --git a/arch/arm/mach-ixp4xx/nas100d-pci.c b/arch/arm/mach-ixp4xx/nas100d-pci.c index 428d1202b79..5434ccf553e 100644 --- a/arch/arm/mach-ixp4xx/nas100d-pci.c +++ b/arch/arm/mach-ixp4xx/nas100d-pci.c | |||
@@ -41,7 +41,7 @@ void __init nas100d_pci_preinit(void) | |||
41 | ixp4xx_pci_preinit(); | 41 | ixp4xx_pci_preinit(); |
42 | } | 42 | } |
43 | 43 | ||
44 | static int __init nas100d_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 44 | static int __init nas100d_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
45 | { | 45 | { |
46 | static int pci_irq_table[MAX_DEV][IRQ_LINES] = { | 46 | static int pci_irq_table[MAX_DEV][IRQ_LINES] = { |
47 | { IXP4XX_GPIO_IRQ(INTA), -1, -1 }, | 47 | { IXP4XX_GPIO_IRQ(INTA), -1, -1 }, |
diff --git a/arch/arm/mach-ixp4xx/nslu2-pci.c b/arch/arm/mach-ixp4xx/nslu2-pci.c index 2e85f76b950..b57160535e4 100644 --- a/arch/arm/mach-ixp4xx/nslu2-pci.c +++ b/arch/arm/mach-ixp4xx/nslu2-pci.c | |||
@@ -38,7 +38,7 @@ void __init nslu2_pci_preinit(void) | |||
38 | ixp4xx_pci_preinit(); | 38 | ixp4xx_pci_preinit(); |
39 | } | 39 | } |
40 | 40 | ||
41 | static int __init nslu2_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 41 | static int __init nslu2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
42 | { | 42 | { |
43 | static int pci_irq_table[IRQ_LINES] = { | 43 | static int pci_irq_table[IRQ_LINES] = { |
44 | IXP4XX_GPIO_IRQ(INTA), | 44 | IXP4XX_GPIO_IRQ(INTA), |
diff --git a/arch/arm/mach-ixp4xx/vulcan-pci.c b/arch/arm/mach-ixp4xx/vulcan-pci.c index 03bdec5140a..0bc3f34c282 100644 --- a/arch/arm/mach-ixp4xx/vulcan-pci.c +++ b/arch/arm/mach-ixp4xx/vulcan-pci.c | |||
@@ -43,7 +43,7 @@ void __init vulcan_pci_preinit(void) | |||
43 | ixp4xx_pci_preinit(); | 43 | ixp4xx_pci_preinit(); |
44 | } | 44 | } |
45 | 45 | ||
46 | static int __init vulcan_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 46 | static int __init vulcan_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
47 | { | 47 | { |
48 | if (slot == 1) | 48 | if (slot == 1) |
49 | return IXP4XX_GPIO_IRQ(INTA); | 49 | return IXP4XX_GPIO_IRQ(INTA); |
diff --git a/arch/arm/mach-ixp4xx/wg302v2-pci.c b/arch/arm/mach-ixp4xx/wg302v2-pci.c index 17f3cf59a31..f27dfcfe811 100644 --- a/arch/arm/mach-ixp4xx/wg302v2-pci.c +++ b/arch/arm/mach-ixp4xx/wg302v2-pci.c | |||
@@ -35,7 +35,7 @@ void __init wg302v2_pci_preinit(void) | |||
35 | ixp4xx_pci_preinit(); | 35 | ixp4xx_pci_preinit(); |
36 | } | 36 | } |
37 | 37 | ||
38 | static int __init wg302v2_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 38 | static int __init wg302v2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
39 | { | 39 | { |
40 | if (slot == 1) | 40 | if (slot == 1) |
41 | return IRQ_IXP4XX_GPIO8; | 41 | return IRQ_IXP4XX_GPIO8; |
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c index bfeb9c900ce..74b992d810e 100644 --- a/arch/arm/mach-kirkwood/pcie.c +++ b/arch/arm/mach-kirkwood/pcie.c | |||
@@ -245,7 +245,8 @@ kirkwood_pcie_scan_bus(int nr, struct pci_sys_data *sys) | |||
245 | return bus; | 245 | return bus; |
246 | } | 246 | } |
247 | 247 | ||
248 | static int __init kirkwood_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 248 | static int __init kirkwood_pcie_map_irq(const struct pci_dev *dev, u8 slot, |
249 | u8 pin) | ||
249 | { | 250 | { |
250 | struct pcie_port *pp = bus_to_port(dev->bus); | 251 | struct pcie_port *pp = bus_to_port(dev->bus); |
251 | 252 | ||
diff --git a/arch/arm/mach-ks8695/board-dsm320.c b/arch/arm/mach-ks8695/board-dsm320.c index ada92b6bed2..1338cb3e982 100644 --- a/arch/arm/mach-ks8695/board-dsm320.c +++ b/arch/arm/mach-ks8695/board-dsm320.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "generic.h" | 34 | #include "generic.h" |
35 | 35 | ||
36 | #ifdef CONFIG_PCI | 36 | #ifdef CONFIG_PCI |
37 | static int dsm320_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 37 | static int dsm320_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
38 | { | 38 | { |
39 | switch (slot) { | 39 | switch (slot) { |
40 | case 0: | 40 | case 0: |
diff --git a/arch/arm/mach-ks8695/board-micrel.c b/arch/arm/mach-ks8695/board-micrel.c index c7ad09bd6ea..e2e3cba8dcd 100644 --- a/arch/arm/mach-ks8695/board-micrel.c +++ b/arch/arm/mach-ks8695/board-micrel.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "generic.h" | 24 | #include "generic.h" |
25 | 25 | ||
26 | #ifdef CONFIG_PCI | 26 | #ifdef CONFIG_PCI |
27 | static int micrel_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 27 | static int micrel_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
28 | { | 28 | { |
29 | return KS8695_IRQ_EXTERN0; | 29 | return KS8695_IRQ_EXTERN0; |
30 | } | 30 | } |
diff --git a/arch/arm/mach-ks8695/include/mach/devices.h b/arch/arm/mach-ks8695/include/mach/devices.h index 2744fecb429..85a3c9aa7d1 100644 --- a/arch/arm/mach-ks8695/include/mach/devices.h +++ b/arch/arm/mach-ks8695/include/mach/devices.h | |||
@@ -30,7 +30,7 @@ extern void __init ks8695_init_leds(u8 cpu_led, u8 timer_led); | |||
30 | 30 | ||
31 | struct ks8695_pci_cfg { | 31 | struct ks8695_pci_cfg { |
32 | short mode; | 32 | short mode; |
33 | int (*map_irq)(struct pci_dev *, u8, u8); | 33 | int (*map_irq)(const struct pci_dev *, u8, u8); |
34 | }; | 34 | }; |
35 | extern __init void ks8695_init_pci(struct ks8695_pci_cfg *); | 35 | extern __init void ks8695_init_pci(struct ks8695_pci_cfg *); |
36 | 36 | ||
diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c index d6336afe994..c51af1cac30 100644 --- a/arch/arm/mach-mv78xx0/pcie.c +++ b/arch/arm/mach-mv78xx0/pcie.c | |||
@@ -260,7 +260,8 @@ mv78xx0_pcie_scan_bus(int nr, struct pci_sys_data *sys) | |||
260 | return bus; | 260 | return bus; |
261 | } | 261 | } |
262 | 262 | ||
263 | static int __init mv78xx0_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 263 | static int __init mv78xx0_pcie_map_irq(const struct pci_dev *dev, u8 slot, |
264 | u8 pin) | ||
264 | { | 265 | { |
265 | struct pcie_port *pp = bus_to_port(dev->bus->number); | 266 | struct pcie_port *pp = bus_to_port(dev->bus->number); |
266 | 267 | ||
diff --git a/arch/arm/mach-orion5x/common.h b/arch/arm/mach-orion5x/common.h index f2b2b35e864..3e5499dda49 100644 --- a/arch/arm/mach-orion5x/common.h +++ b/arch/arm/mach-orion5x/common.h | |||
@@ -51,7 +51,7 @@ void orion5x_pci_disable(void); | |||
51 | void orion5x_pci_set_cardbus_mode(void); | 51 | void orion5x_pci_set_cardbus_mode(void); |
52 | int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys); | 52 | int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys); |
53 | struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys); | 53 | struct pci_bus *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys); |
54 | int orion5x_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin); | 54 | int orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); |
55 | 55 | ||
56 | struct machine_desc; | 56 | struct machine_desc; |
57 | struct meminfo; | 57 | struct meminfo; |
diff --git a/arch/arm/mach-orion5x/db88f5281-setup.c b/arch/arm/mach-orion5x/db88f5281-setup.c index f95d3cb01cb..a3e3e9e5e32 100644 --- a/arch/arm/mach-orion5x/db88f5281-setup.c +++ b/arch/arm/mach-orion5x/db88f5281-setup.c | |||
@@ -237,7 +237,8 @@ void __init db88f5281_pci_preinit(void) | |||
237 | } | 237 | } |
238 | } | 238 | } |
239 | 239 | ||
240 | static int __init db88f5281_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 240 | static int __init db88f5281_pci_map_irq(const struct pci_dev *dev, u8 slot, |
241 | u8 pin) | ||
241 | { | 242 | { |
242 | int irq; | 243 | int irq; |
243 | 244 | ||
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index 855e0e77d56..a6eddae82a0 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -70,14 +70,14 @@ enum { | |||
70 | * PCI setup | 70 | * PCI setup |
71 | */ | 71 | */ |
72 | 72 | ||
73 | static int __init dns323_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 73 | static int __init dns323_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
74 | { | 74 | { |
75 | int irq; | 75 | int irq; |
76 | 76 | ||
77 | /* | 77 | /* |
78 | * Check for devices with hard-wired IRQs. | 78 | * Check for devices with hard-wired IRQs. |
79 | */ | 79 | */ |
80 | irq = orion5x_pci_map_irq(dev, slot, pin); | 80 | irq = orion5x_pci_map_irq(const dev, slot, pin); |
81 | if (irq != -1) | 81 | if (irq != -1) |
82 | return irq; | 82 | return irq; |
83 | 83 | ||
diff --git a/arch/arm/mach-orion5x/kurobox_pro-setup.c b/arch/arm/mach-orion5x/kurobox_pro-setup.c index c0eb6462633..00381249d76 100644 --- a/arch/arm/mach-orion5x/kurobox_pro-setup.c +++ b/arch/arm/mach-orion5x/kurobox_pro-setup.c | |||
@@ -119,7 +119,8 @@ static struct platform_device kurobox_pro_nor_flash = { | |||
119 | * PCI | 119 | * PCI |
120 | ****************************************************************************/ | 120 | ****************************************************************************/ |
121 | 121 | ||
122 | static int __init kurobox_pro_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 122 | static int __init kurobox_pro_pci_map_irq(const struct pci_dev *dev, u8 slot, |
123 | u8 pin) | ||
123 | { | 124 | { |
124 | int irq; | 125 | int irq; |
125 | 126 | ||
diff --git a/arch/arm/mach-orion5x/mss2-setup.c b/arch/arm/mach-orion5x/mss2-setup.c index 59263b73d1e..ef3bb8e9a4c 100644 --- a/arch/arm/mach-orion5x/mss2-setup.c +++ b/arch/arm/mach-orion5x/mss2-setup.c | |||
@@ -73,7 +73,7 @@ static struct platform_device mss2_nor_flash = { | |||
73 | /**************************************************************************** | 73 | /**************************************************************************** |
74 | * PCI setup | 74 | * PCI setup |
75 | ****************************************************************************/ | 75 | ****************************************************************************/ |
76 | static int __init mss2_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 76 | static int __init mss2_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
77 | { | 77 | { |
78 | int irq; | 78 | int irq; |
79 | 79 | ||
diff --git a/arch/arm/mach-orion5x/pci.c b/arch/arm/mach-orion5x/pci.c index f64965d4f8e..28b8760ab9f 100644 --- a/arch/arm/mach-orion5x/pci.c +++ b/arch/arm/mach-orion5x/pci.c | |||
@@ -589,7 +589,7 @@ struct pci_bus __init *orion5x_pci_sys_scan_bus(int nr, struct pci_sys_data *sys | |||
589 | return bus; | 589 | return bus; |
590 | } | 590 | } |
591 | 591 | ||
592 | int __init orion5x_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 592 | int __init orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
593 | { | 593 | { |
594 | int bus = dev->bus->number; | 594 | int bus = dev->bus->number; |
595 | 595 | ||
diff --git a/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c b/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c index 9eec7c2375e..291d22bf44c 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c | |||
@@ -131,7 +131,7 @@ static void __init rd88f5181l_fxo_init(void) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | static int __init | 133 | static int __init |
134 | rd88f5181l_fxo_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 134 | rd88f5181l_fxo_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
135 | { | 135 | { |
136 | int irq; | 136 | int irq; |
137 | 137 | ||
diff --git a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c index 0cc90bbfd32..3f02362e163 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | |||
@@ -140,7 +140,7 @@ static void __init rd88f5181l_ge_init(void) | |||
140 | } | 140 | } |
141 | 141 | ||
142 | static int __init | 142 | static int __init |
143 | rd88f5181l_ge_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 143 | rd88f5181l_ge_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
144 | { | 144 | { |
145 | int irq; | 145 | int irq; |
146 | 146 | ||
diff --git a/arch/arm/mach-orion5x/rd88f5182-setup.c b/arch/arm/mach-orion5x/rd88f5182-setup.c index 48da39b9bdb..27fd38e658b 100644 --- a/arch/arm/mach-orion5x/rd88f5182-setup.c +++ b/arch/arm/mach-orion5x/rd88f5182-setup.c | |||
@@ -172,7 +172,8 @@ void __init rd88f5182_pci_preinit(void) | |||
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | static int __init rd88f5182_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 175 | static int __init rd88f5182_pci_map_irq(const struct pci_dev *dev, u8 slot, |
176 | u8 pin) | ||
176 | { | 177 | { |
177 | int irq; | 178 | int irq; |
178 | 179 | ||
diff --git a/arch/arm/mach-orion5x/terastation_pro2-setup.c b/arch/arm/mach-orion5x/terastation_pro2-setup.c index 29ce826c3c2..a34e4fac72b 100644 --- a/arch/arm/mach-orion5x/terastation_pro2-setup.c +++ b/arch/arm/mach-orion5x/terastation_pro2-setup.c | |||
@@ -100,7 +100,7 @@ void __init tsp2_pci_preinit(void) | |||
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
103 | static int __init tsp2_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 103 | static int __init tsp2_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
104 | { | 104 | { |
105 | int irq; | 105 | int irq; |
106 | 106 | ||
diff --git a/arch/arm/mach-orion5x/ts209-setup.c b/arch/arm/mach-orion5x/ts209-setup.c index 47162fd5f04..c9831614e35 100644 --- a/arch/arm/mach-orion5x/ts209-setup.c +++ b/arch/arm/mach-orion5x/ts209-setup.c | |||
@@ -143,7 +143,8 @@ void __init qnap_ts209_pci_preinit(void) | |||
143 | } | 143 | } |
144 | } | 144 | } |
145 | 145 | ||
146 | static int __init qnap_ts209_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 146 | static int __init qnap_ts209_pci_map_irq(const struct pci_dev *dev, u8 slot, |
147 | u8 pin) | ||
147 | { | 148 | { |
148 | int irq; | 149 | int irq; |
149 | 150 | ||
diff --git a/arch/arm/mach-orion5x/ts409-setup.c b/arch/arm/mach-orion5x/ts409-setup.c index 5aacc7ac5cf..cc33b2222ba 100644 --- a/arch/arm/mach-orion5x/ts409-setup.c +++ b/arch/arm/mach-orion5x/ts409-setup.c | |||
@@ -121,7 +121,8 @@ static struct platform_device qnap_ts409_nor_flash = { | |||
121 | * PCI | 121 | * PCI |
122 | ****************************************************************************/ | 122 | ****************************************************************************/ |
123 | 123 | ||
124 | static int __init qnap_ts409_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 124 | static int __init qnap_ts409_pci_map_irq(const struct pci_dev *dev, u8 slot, |
125 | u8 pin) | ||
125 | { | 126 | { |
126 | int irq; | 127 | int irq; |
127 | 128 | ||
diff --git a/arch/arm/mach-orion5x/wnr854t-setup.c b/arch/arm/mach-orion5x/wnr854t-setup.c index 444a1c7fdfd..2653595f901 100644 --- a/arch/arm/mach-orion5x/wnr854t-setup.c +++ b/arch/arm/mach-orion5x/wnr854t-setup.c | |||
@@ -133,7 +133,8 @@ static void __init wnr854t_init(void) | |||
133 | platform_device_register(&wnr854t_nor_flash); | 133 | platform_device_register(&wnr854t_nor_flash); |
134 | } | 134 | } |
135 | 135 | ||
136 | static int __init wnr854t_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 136 | static int __init wnr854t_pci_map_irq(const struct pci_dev *dev, u8 slot, |
137 | u8 pin) | ||
137 | { | 138 | { |
138 | int irq; | 139 | int irq; |
139 | 140 | ||
diff --git a/arch/arm/mach-orion5x/wrt350n-v2-setup.c b/arch/arm/mach-orion5x/wrt350n-v2-setup.c index d1952be0ae1..251ef1543e5 100644 --- a/arch/arm/mach-orion5x/wrt350n-v2-setup.c +++ b/arch/arm/mach-orion5x/wrt350n-v2-setup.c | |||
@@ -221,7 +221,8 @@ static void __init wrt350n_v2_init(void) | |||
221 | platform_device_register(&wrt350n_v2_button_device); | 221 | platform_device_register(&wrt350n_v2_button_device); |
222 | } | 222 | } |
223 | 223 | ||
224 | static int __init wrt350n_v2_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 224 | static int __init wrt350n_v2_pci_map_irq(const struct pci_dev *dev, u8 slot, |
225 | u8 pin) | ||
225 | { | 226 | { |
226 | int irq; | 227 | int irq; |
227 | 228 | ||
diff --git a/arch/arm/mach-pxa/cm-x2xx-pci.c b/arch/arm/mach-pxa/cm-x2xx-pci.c index 4eb7660a279..6bf479d9b5a 100644 --- a/arch/arm/mach-pxa/cm-x2xx-pci.c +++ b/arch/arm/mach-pxa/cm-x2xx-pci.c | |||
@@ -77,7 +77,7 @@ void cmx2xx_pci_resume(void) {} | |||
77 | #endif | 77 | #endif |
78 | 78 | ||
79 | /* PCI IRQ mapping*/ | 79 | /* PCI IRQ mapping*/ |
80 | static int __init cmx2xx_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 80 | static int __init cmx2xx_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
81 | { | 81 | { |
82 | int irq; | 82 | int irq; |
83 | 83 | ||
diff --git a/arch/arm/mach-sa1100/pci-nanoengine.c b/arch/arm/mach-sa1100/pci-nanoengine.c index 5fc074fe3ee..964c6c3cd7a 100644 --- a/arch/arm/mach-sa1100/pci-nanoengine.c +++ b/arch/arm/mach-sa1100/pci-nanoengine.c | |||
@@ -122,7 +122,8 @@ static struct pci_ops pci_nano_ops = { | |||
122 | .write = nanoengine_write_config, | 122 | .write = nanoengine_write_config, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | static int __init pci_nanoengine_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 125 | static int __init pci_nanoengine_map_irq(const struct pci_dev *dev, u8 slot, |
126 | u8 pin) | ||
126 | { | 127 | { |
127 | return NANOENGINE_IRQ_GPIO_PCI; | 128 | return NANOENGINE_IRQ_GPIO_PCI; |
128 | } | 129 | } |
diff --git a/arch/arm/mach-shark/pci.c b/arch/arm/mach-shark/pci.c index 92d7227de0a..7cb79a092f3 100644 --- a/arch/arm/mach-shark/pci.c +++ b/arch/arm/mach-shark/pci.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <asm/mach/pci.h> | 14 | #include <asm/mach/pci.h> |
15 | #include <asm/mach-types.h> | 15 | #include <asm/mach-types.h> |
16 | 16 | ||
17 | static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 17 | static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
18 | { | 18 | { |
19 | if (dev->bus->number == 0) | 19 | if (dev->bus->number == 0) |
20 | if (dev->devfn == 0) | 20 | if (dev->devfn == 0) |
diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c index 031cd0a7d71..f1f699d86c3 100644 --- a/arch/arm/mach-tegra/pcie.c +++ b/arch/arm/mach-tegra/pcie.c | |||
@@ -449,7 +449,7 @@ static int tegra_pcie_setup(int nr, struct pci_sys_data *sys) | |||
449 | return 1; | 449 | return 1; |
450 | } | 450 | } |
451 | 451 | ||
452 | static int tegra_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 452 | static int tegra_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
453 | { | 453 | { |
454 | return INT_PCIE_INTR; | 454 | return INT_PCIE_INTR; |
455 | } | 455 | } |
diff --git a/arch/arm/mach-versatile/pci.c b/arch/arm/mach-versatile/pci.c index 7848a177b1f..c898deb3ada 100644 --- a/arch/arm/mach-versatile/pci.c +++ b/arch/arm/mach-versatile/pci.c | |||
@@ -328,7 +328,7 @@ void __init pci_versatile_preinit(void) | |||
328 | /* | 328 | /* |
329 | * map the specified device/slot/pin to an IRQ. Different backplanes may need to modify this. | 329 | * map the specified device/slot/pin to an IRQ. Different backplanes may need to modify this. |
330 | */ | 330 | */ |
331 | static int __init versatile_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | 331 | static int __init versatile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
332 | { | 332 | { |
333 | int irq; | 333 | int irq; |
334 | int devslot = PCI_SLOT(dev->devfn); | 334 | int devslot = PCI_SLOT(dev->devfn); |