Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Make the struct pci_dev * argument of pci_fixup_irqs const.

Aside of the usual motivation for constification, this function has a
history of being abused a hook for interrupt and other fixups so I turned
this function const ages ago in the MIPS code but it should be done
treewide.

Due to function pointer passing in varous places a few other functions
had to be constified as well.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
To: Anton Vorontsov <avorontsov@mvista.com>
To: Chris Metcalf <cmetcalf@tilera.com>
To: Colin Cross <ccross@android.com>
Acked-by: "David S. Miller" <davem@davemloft.net>
To: Eric Miao <eric.y.miao@gmail.com>
To: Erik Gilling <konkers@android.com>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
To: "H. Peter Anvin" <hpa@zytor.com>
To: Imre Kaloz <kaloz@openwrt.org>
To: Ingo Molnar <mingo@redhat.com>
To: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Krzysztof Halasa <khc@pm.waw.pl>
To: Lennert Buytenhek <kernel@wantstofly.org>
To: Matt Turner <mattst88@gmail.com>
To: Nicolas Pitre <nico@fluxnic.net>
To: Olof Johansson <olof@lixom.net>
Acked-by: Paul Mundt <lethal@linux-sh.org>
To: Richard Henderson <rth@twiddle.net>
To: Russell King <linux@arm.linux.org.uk>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-alpha@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: linux-pci@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Cc: x86@kernel.org
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

authored by

Ralf Baechle and committed by
Jesse Barnes
d5341942 05d3ac26

+130 -113
+1 -1
arch/alpha/kernel/sys_alcor.c
··· 183 183 */ 184 184 185 185 static int __init 186 - alcor_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 186 + alcor_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 187 187 { 188 188 static char irq_tab[7][5] __initdata = { 189 189 /*INT INTA INTB INTC INTD */
+3 -3
arch/alpha/kernel/sys_cabriolet.c
··· 175 175 */ 176 176 177 177 static inline int __init 178 - eb66p_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 178 + eb66p_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 179 179 { 180 180 static char irq_tab[5][5] __initdata = { 181 181 /*INT INTA INTB INTC INTD */ ··· 205 205 */ 206 206 207 207 static inline int __init 208 - cabriolet_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 208 + cabriolet_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 209 209 { 210 210 static char irq_tab[5][5] __initdata = { 211 211 /*INT INTA INTB INTC INTD */ ··· 289 289 */ 290 290 291 291 static inline int __init 292 - alphapc164_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 292 + alphapc164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 293 293 { 294 294 static char irq_tab[7][5] __initdata = { 295 295 /*INT INTA INTB INTC INTD */
+4 -4
arch/alpha/kernel/sys_dp264.c
··· 382 382 } 383 383 384 384 static int __init 385 - dp264_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 385 + dp264_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 386 386 { 387 387 static char irq_tab[6][5] __initdata = { 388 388 /*INT INTA INTB INTC INTD */ ··· 404 404 } 405 405 406 406 static int __init 407 - monet_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 407 + monet_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 408 408 { 409 409 static char irq_tab[13][5] __initdata = { 410 410 /*INT INTA INTB INTC INTD */ ··· 466 466 } 467 467 468 468 static int __init 469 - webbrick_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 469 + webbrick_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 470 470 { 471 471 static char irq_tab[13][5] __initdata = { 472 472 /*INT INTA INTB INTC INTD */ ··· 488 488 } 489 489 490 490 static int __init 491 - clipper_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 491 + clipper_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 492 492 { 493 493 static char irq_tab[7][5] __initdata = { 494 494 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_eb64p.c
··· 169 169 */ 170 170 171 171 static int __init 172 - eb64p_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 172 + eb64p_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 173 173 { 174 174 static char irq_tab[5][5] __initdata = { 175 175 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_eiger.c
··· 144 144 } 145 145 146 146 static int __init 147 - eiger_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 147 + eiger_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 148 148 { 149 149 u8 irq_orig; 150 150
+1 -1
arch/alpha/kernel/sys_marvel.c
··· 318 318 } 319 319 320 320 static int 321 - marvel_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 321 + marvel_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 322 322 { 323 323 struct pci_controller *hose = dev->sysdata; 324 324 struct io7_port *io7_port = hose->sysdata;
+1 -1
arch/alpha/kernel/sys_miata.c
··· 151 151 */ 152 152 153 153 static int __init 154 - miata_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 154 + miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 155 155 { 156 156 static char irq_tab[18][5] __initdata = { 157 157 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_mikasa.c
··· 146 146 */ 147 147 148 148 static int __init 149 - mikasa_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 149 + mikasa_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 150 150 { 151 151 static char irq_tab[8][5] __initdata = { 152 152 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_nautilus.c
··· 65 65 } 66 66 67 67 static int __init 68 - nautilus_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 68 + nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 69 69 { 70 70 /* Preserve the IRQ set up by the console. */ 71 71
+1 -1
arch/alpha/kernel/sys_noritake.c
··· 194 194 */ 195 195 196 196 static int __init 197 - noritake_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 197 + noritake_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 198 198 { 199 199 static char irq_tab[15][5] __initdata = { 200 200 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_rawhide.c
··· 223 223 */ 224 224 225 225 static int __init 226 - rawhide_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 226 + rawhide_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 227 227 { 228 228 static char irq_tab[5][5] __initdata = { 229 229 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_ruffian.c
··· 120 120 */ 121 121 122 122 static int __init 123 - ruffian_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 123 + ruffian_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 124 124 { 125 125 static char irq_tab[11][5] __initdata = { 126 126 /*INT INTA INTB INTC INTD */
+1 -1
arch/alpha/kernel/sys_rx164.c
··· 144 144 */ 145 145 146 146 static int __init 147 - rx164_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 147 + rx164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 148 148 { 149 149 #if 0 150 150 static char irq_tab_pass1[6][5] __initdata = {
+2 -2
arch/alpha/kernel/sys_sable.c
··· 194 194 */ 195 195 196 196 static int __init 197 - sable_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 197 + sable_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 198 198 { 199 199 static char irq_tab[9][5] __initdata = { 200 200 /*INT INTA INTB INTC INTD */ ··· 376 376 */ 377 377 378 378 static int __init 379 - lynx_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 379 + lynx_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 380 380 { 381 381 static char irq_tab[19][5] __initdata = { 382 382 /*INT INTA INTB INTC INTD */
+2 -2
arch/alpha/kernel/sys_sio.c
··· 146 146 } 147 147 148 148 static inline int __init 149 - noname_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 149 + noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 150 150 { 151 151 /* 152 152 * The Noname board has 5 PCI slots with each of the 4 ··· 185 185 } 186 186 187 187 static inline int __init 188 - p2k_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 188 + p2k_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 189 189 { 190 190 static char irq_tab[][5] __initdata = { 191 191 /*INT A B C D */
+1 -1
arch/alpha/kernel/sys_sx164.c
··· 95 95 */ 96 96 97 97 static int __init 98 - sx164_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 98 + sx164_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 99 99 { 100 100 static char irq_tab[5][5] __initdata = { 101 101 /*INT INTA INTB INTC INTD */
+2 -2
arch/alpha/kernel/sys_takara.c
··· 157 157 */ 158 158 159 159 static int __init 160 - takara_map_irq_srm(struct pci_dev *dev, u8 slot, u8 pin) 160 + takara_map_irq_srm(const struct pci_dev *dev, u8 slot, u8 pin) 161 161 { 162 162 static char irq_tab[15][5] __initdata = { 163 163 { 16+3, 16+3, 16+3, 16+3, 16+3}, /* slot 6 == device 3 */ ··· 188 188 } 189 189 190 190 static int __init 191 - takara_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 191 + takara_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 192 192 { 193 193 static char irq_tab[15][5] __initdata = { 194 194 { 16+3, 16+3, 16+3, 16+3, 16+3}, /* slot 6 == device 3 */
+1 -1
arch/alpha/kernel/sys_titan.c
··· 305 305 } 306 306 307 307 static int __devinit 308 - titan_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 308 + titan_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 309 309 { 310 310 u8 intline; 311 311 int irq;
+1 -1
arch/alpha/kernel/sys_wildfire.c
··· 290 290 */ 291 291 292 292 static int __init 293 - wildfire_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 293 + wildfire_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 294 294 { 295 295 static char irq_tab[8][5] __initdata = { 296 296 /*INT INTA INTB INTC INTD */
+1 -1
arch/arm/common/it8152.c
··· 144 144 } 145 145 146 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 149 if ((dev->vendor == PCI_VENDOR_ID_ITE) && 150 150 (dev->device == PCI_DEVICE_ID_ITE_8152)) {
+1 -1
arch/arm/include/asm/hardware/it8152.h
··· 105 105 106 106 extern void it8152_irq_demux(unsigned int irq, struct irq_desc *desc); 107 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 109 extern int it8152_pci_setup(int nr, struct pci_sys_data *sys); 110 110 extern struct pci_bus *it8152_pci_scan_bus(int nr, struct pci_sys_data *sys); 111 111
+2 -2
arch/arm/include/asm/mach/pci.h
··· 25 25 void (*preinit)(void); 26 26 void (*postinit)(void); 27 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 44 /* Bridge swizzling */ 45 45 u8 (*swizzle)(struct pci_dev *, u8 *); 46 46 /* IRQ mapping */ 47 - int (*map_irq)(struct pci_dev *, u8, u8); 47 + int (*map_irq)(const struct pci_dev *, u8, u8); 48 48 struct hw_pci *hw; 49 49 void *private_data; /* platform controller private data */ 50 50 };
+1 -1
arch/arm/kernel/bios32.c
··· 476 476 /* 477 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 481 struct pci_sys_data *sys = dev->sysdata; 482 482 int irq = -1;
+1 -1
arch/arm/mach-cns3xxx/pcie.c
··· 172 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 177 struct cns3xxx_pcie *cnspci = pdev_to_cnspci(dev); 178 178 int irq = cnspci->irqs[slot];
+1 -1
arch/arm/mach-dove/pcie.c
··· 192 192 return bus; 193 193 } 194 194 195 - static int __init dove_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 195 + static int __init dove_pcie_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 196 196 { 197 197 struct pcie_port *pp = bus_to_port(dev->bus->number); 198 198
+1 -1
arch/arm/mach-footbridge/cats-pci.c
··· 16 16 /* cats host-specific stuff */ 17 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 21 if (dev->irq >= 255) 22 22 return -1; /* not a valid interrupt. */
+1 -1
arch/arm/mach-footbridge/ebsa285-pci.c
··· 15 15 16 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 20 if (dev->vendor == PCI_VENDOR_ID_CONTAQ && 21 21 dev->device == PCI_DEVICE_ID_CONTAQ_82C693)
+1 -1
arch/arm/mach-footbridge/netwinder-pci.c
··· 17 17 * We now use the slot ID instead of the device identifiers to select 18 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 22 switch (slot) { 23 23 case 0: /* host bridge */
+2 -1
arch/arm/mach-footbridge/personal-pci.c
··· 18 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 24 unsigned char line; 24 25
+1 -1
arch/arm/mach-integrator/pci.c
··· 95 95 * map the specified device/slot/pin to an IRQ. This works out such 96 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 100 int intnr = ((slot - 9) + (pin - 1)) & 3; 101 101
+1 -1
arch/arm/mach-iop13xx/iq81340mc.c
··· 30 30 extern int init_atu; /* Flag to select which ATU(s) to initialize / disable */ 31 31 32 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 35 switch (idsel) { 36 36 case 1:
+1 -1
arch/arm/mach-iop13xx/pci.c
··· 390 390 } 391 391 392 392 static int 393 - iop13xx_pcie_map_irq(struct pci_dev *dev, u8 idsel, u8 pin) 393 + iop13xx_pcie_map_irq(const struct pci_dev *dev, u8 idsel, u8 pin) 394 394 { 395 395 WARN_ON(idsel != 0); 396 396
+1 -1
arch/arm/mach-iop32x/em7210.c
··· 81 81 #define INTD IRQ_IOP32X_XINT3 82 82 83 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 86 static int pci_irq_table[][4] = { 87 87 /*
+1 -1
arch/arm/mach-iop32x/glantank.c
··· 77 77 #define INTD IRQ_IOP32X_XINT3 78 78 79 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 82 static int pci_irq_table[][4] = { 83 83 /*
+2 -2
arch/arm/mach-iop32x/iq31244.c
··· 103 103 * EP80219/IQ31244 PCI. 104 104 */ 105 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 108 int irq; 109 109 ··· 139 139 }; 140 140 141 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 144 int irq; 145 145
+1 -1
arch/arm/mach-iop32x/iq80321.c
··· 71 71 * IQ80321 PCI. 72 72 */ 73 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 76 int irq; 77 77
+1 -1
arch/arm/mach-iop32x/n2100.c
··· 78 78 * N2100 PCI. 79 79 */ 80 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 83 int irq; 84 84
+1 -1
arch/arm/mach-iop33x/iq80331.c
··· 54 54 * IQ80331 PCI. 55 55 */ 56 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 59 int irq; 60 60
+1 -1
arch/arm/mach-iop33x/iq80332.c
··· 54 54 * IQ80332 PCI. 55 55 */ 56 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 59 int irq; 60 60
+2 -1
arch/arm/mach-ixp2000/enp2611.c
··· 148 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 154 int irq; 154 155
+2 -1
arch/arm/mach-ixp2000/ixdp2400.c
··· 78 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 84 if (ixdp2x00_master_npu()) { 84 85
+2 -1
arch/arm/mach-ixp2000/ixdp2800.c
··· 161 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 167 if (ixdp2x00_master_npu()) { 167 168
+2 -1
arch/arm/mach-ixp2000/ixdp2x01.c
··· 252 252 253 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 258 u8 bus = dev->bus->number; 258 259 u32 devpin = DEVPIN(PCI_SLOT(dev->devfn), pin);
+1 -1
arch/arm/mach-ixp23xx/ixdp2351.c
··· 168 168 */ 169 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 173 u8 bus = dev->bus->number; 174 174 u32 devpin = DEVPIN(PCI_SLOT(dev->devfn), pin);
+2 -1
arch/arm/mach-ixp23xx/roadrunner.c
··· 56 56 #define INTC_PIN IXP23XX_GPIO_PIN_11 57 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 62 static int pci_card_slot_irq[] = {INTB, INTC, INTD, INTA}; 62 63 static int pmc_card_slot_irq[] = {INTA, INTB, INTC, INTD};
+1 -1
arch/arm/mach-ixp4xx/avila-pci.c
··· 46 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 51 static int pci_irq_table[IRQ_LINES] = { 52 52 IXP4XX_GPIO_IRQ(INTA),
+1 -1
arch/arm/mach-ixp4xx/coyote-pci.c
··· 37 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 42 if (slot == SLOT0_DEVID) 43 43 return IXP4XX_GPIO_IRQ(SLOT0_INTA);
+1 -1
arch/arm/mach-ixp4xx/dsmg600-pci.c
··· 44 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 49 static int pci_irq_table[MAX_DEV][IRQ_LINES] = { 50 50 { IXP4XX_GPIO_IRQ(INTE), -1, -1 },
+1 -1
arch/arm/mach-ixp4xx/fsg-pci.c
··· 38 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 43 static int pci_irq_table[IRQ_LINES] = { 44 44 IXP4XX_GPIO_IRQ(INTC),
+2 -1
arch/arm/mach-ixp4xx/gateway7001-pci.c
··· 35 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 41 if (slot == 1) 41 42 return IRQ_IXP4XX_GPIO11;
+1 -1
arch/arm/mach-ixp4xx/goramo_mlr.c
··· 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 467 switch(slot) { 468 468 case SLOT_ETHA: return IXP4XX_GPIO_IRQ(GPIO_IRQ_ETHA);
+1 -1
arch/arm/mach-ixp4xx/gtwx5715-pci.c
··· 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 54 int rc = -1; 55 55
+1 -1
arch/arm/mach-ixp4xx/ixdp425-pci.c
··· 43 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 48 static int pci_irq_table[IRQ_LINES] = { 49 49 IXP4XX_GPIO_IRQ(INTA),
+1 -1
arch/arm/mach-ixp4xx/ixdpg425-pci.c
··· 31 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 36 if (slot == 12 || slot == 13) 37 37 return IRQ_IXP4XX_GPIO7;
+1 -1
arch/arm/mach-ixp4xx/nas100d-pci.c
··· 41 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 46 static int pci_irq_table[MAX_DEV][IRQ_LINES] = { 47 47 { IXP4XX_GPIO_IRQ(INTA), -1, -1 },
+1 -1
arch/arm/mach-ixp4xx/nslu2-pci.c
··· 38 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 43 static int pci_irq_table[IRQ_LINES] = { 44 44 IXP4XX_GPIO_IRQ(INTA),
+1 -1
arch/arm/mach-ixp4xx/vulcan-pci.c
··· 43 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 48 if (slot == 1) 49 49 return IXP4XX_GPIO_IRQ(INTA);
+1 -1
arch/arm/mach-ixp4xx/wg302v2-pci.c
··· 35 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 40 if (slot == 1) 41 41 return IRQ_IXP4XX_GPIO8;
+2 -1
arch/arm/mach-kirkwood/pcie.c
··· 244 244 return bus; 245 245 } 246 246 247 - static int __init kirkwood_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 247 + static int __init kirkwood_pcie_map_irq(const struct pci_dev *dev, u8 slot, 248 + u8 pin) 248 249 { 249 250 struct pcie_port *pp = bus_to_port(dev->bus); 250 251
+1 -1
arch/arm/mach-ks8695/board-dsm320.c
··· 34 34 #include "generic.h" 35 35 36 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 39 switch (slot) { 40 40 case 0:
+1 -1
arch/arm/mach-ks8695/board-micrel.c
··· 24 24 #include "generic.h" 25 25 26 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 29 return KS8695_IRQ_EXTERN0; 30 30 }
+1 -1
arch/arm/mach-ks8695/include/mach/devices.h
··· 30 30 31 31 struct ks8695_pci_cfg { 32 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 35 extern __init void ks8695_init_pci(struct ks8695_pci_cfg *); 36 36
+2 -1
arch/arm/mach-mv78xx0/pcie.c
··· 259 259 return bus; 260 260 } 261 261 262 - static int __init mv78xx0_pcie_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 262 + static int __init mv78xx0_pcie_map_irq(const struct pci_dev *dev, u8 slot, 263 + u8 pin) 263 264 { 264 265 struct pcie_port *pp = bus_to_port(dev->bus->number); 265 266
+1 -1
arch/arm/mach-orion5x/common.h
··· 51 51 void orion5x_pci_set_cardbus_mode(void); 52 52 int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys); 53 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 56 struct machine_desc; 57 57 struct meminfo;
+2 -1
arch/arm/mach-orion5x/db88f5281-setup.c
··· 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 243 int irq; 243 244
+2 -2
arch/arm/mach-orion5x/dns323-setup.c
··· 70 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 75 int irq; 76 76 77 77 /* 78 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 81 if (irq != -1) 82 82 return irq; 83 83
+2 -1
arch/arm/mach-orion5x/kurobox_pro-setup.c
··· 119 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 125 int irq; 125 126
+1 -1
arch/arm/mach-orion5x/mss2-setup.c
··· 73 73 /**************************************************************************** 74 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 78 int irq; 79 79
+1 -1
arch/arm/mach-orion5x/pci.c
··· 587 587 return bus; 588 588 } 589 589 590 - int __init orion5x_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 590 + int __init orion5x_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 591 591 { 592 592 int bus = dev->bus->number; 593 593
+1 -1
arch/arm/mach-orion5x/rd88f5181l-fxo-setup.c
··· 131 131 } 132 132 133 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 136 int irq; 137 137
+1 -1
arch/arm/mach-orion5x/rd88f5181l-ge-setup.c
··· 140 140 } 141 141 142 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 145 int irq; 146 146
+2 -1
arch/arm/mach-orion5x/rd88f5182-setup.c
··· 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 178 int irq; 178 179
+1 -1
arch/arm/mach-orion5x/terastation_pro2-setup.c
··· 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 105 int irq; 106 106
+2 -1
arch/arm/mach-orion5x/ts209-setup.c
··· 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 149 int irq; 149 150
+2 -1
arch/arm/mach-orion5x/ts409-setup.c
··· 121 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 127 int irq; 127 128
+2 -1
arch/arm/mach-orion5x/wnr854t-setup.c
··· 133 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 139 int irq; 139 140
+2 -1
arch/arm/mach-orion5x/wrt350n-v2-setup.c
··· 221 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 227 int irq; 227 228
+1 -1
arch/arm/mach-pxa/cm-x2xx-pci.c
··· 77 77 #endif 78 78 79 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 82 int irq; 83 83
+2 -1
arch/arm/mach-sa1100/pci-nanoengine.c
··· 122 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 128 return NANOENGINE_IRQ_GPIO_PCI; 128 129 }
+1 -1
arch/arm/mach-shark/pci.c
··· 13 13 #include <asm/mach/pci.h> 14 14 #include <asm/mach-types.h> 15 15 16 - static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 16 + static int __init shark_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 17 17 { 18 18 if (dev->bus->number == 0) 19 19 if (dev->devfn == 0)
+1 -1
arch/arm/mach-tegra/pcie.c
··· 449 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 454 return INT_PCIE_INTR; 455 455 }
+1 -1
arch/arm/mach-versatile/pci.c
··· 325 325 /* 326 326 * map the specified device/slot/pin to an IRQ. Different backplanes may need to modify this. 327 327 */ 328 - static int __init versatile_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 328 + static int __init versatile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 329 329 { 330 330 int irq; 331 331 int devslot = PCI_SLOT(dev->devfn);
+1 -1
arch/sh/drivers/pci/fixups-cayman.c
··· 5 5 #include <cpu/irq.h> 6 6 #include "pci-sh5.h" 7 7 8 - int __init pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin) 8 + int __init pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) 9 9 { 10 10 int result = -1; 11 11
+1 -1
arch/sh/drivers/pci/fixups-dreamcast.c
··· 64 64 } 65 65 DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, gapspci_fixup_resources); 66 66 67 - int __init pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin) 67 + int __init pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) 68 68 { 69 69 /* 70 70 * The interrupt routing semantics here are quite trivial.
+1 -1
arch/sh/drivers/pci/fixups-landisk.c
··· 19 19 #define PCIMCR_MRSET_OFF 0xBFFFFFFF 20 20 #define PCIMCR_RFSH_OFF 0xFFFFFFFB 21 21 22 - int pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 22 + int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 23 23 { 24 24 /* 25 25 * slot0: pin1-4 = irq5,6,7,8
+1 -1
arch/sh/drivers/pci/fixups-r7780rp.c
··· 18 18 65, 66, 67, 68, 19 19 }; 20 20 21 - int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 21 + int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 22 22 { 23 23 return irq_tab[slot]; 24 24 }
+1 -1
arch/sh/drivers/pci/fixups-rts7751r2d.c
··· 31 31 IRQ_ETH0, IRQ_ETH1, IRQ_INTA, IRQ_INTD, 32 32 }; 33 33 34 - int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 34 + int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 35 35 { 36 36 if (mach_is_lboxre2()) 37 37 return lboxre2_irq_tab[slot];
+1 -1
arch/sh/drivers/pci/fixups-sdk7780.c
··· 27 27 { 68, 67, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, 28 28 }; 29 29 30 - int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 30 + int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 31 31 { 32 32 return sdk7780_irq_tab[pin-1][slot]; 33 33 }
+1 -1
arch/sh/drivers/pci/fixups-se7751.c
··· 6 6 #include <linux/io.h> 7 7 #include "pci-sh4.h" 8 8 9 - int __init pcibios_map_platform_irq(struct pci_dev *, u8 slot, u8 pin) 9 + int __init pcibios_map_platform_irq(const struct pci_dev *, u8 slot, u8 pin) 10 10 { 11 11 switch (slot) { 12 12 case 0: return 13;
+1 -1
arch/sh/drivers/pci/fixups-sh03.c
··· 3 3 #include <linux/types.h> 4 4 #include <linux/pci.h> 5 5 6 - int __init pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin) 6 + int __init pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) 7 7 { 8 8 int irq; 9 9
+1 -1
arch/sh/drivers/pci/fixups-snapgear.c
··· 18 18 #include <linux/pci.h> 19 19 #include "pci-sh4.h" 20 20 21 - int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 21 + int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 22 22 { 23 23 int irq = -1; 24 24
+1 -1
arch/sh/drivers/pci/fixups-titan.c
··· 27 27 TITAN_IRQ_USB, 28 28 }; 29 29 30 - int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 30 + int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 31 31 { 32 32 int irq = titan_irq_tab[slot]; 33 33
+1 -1
arch/sh/drivers/pci/pcie-sh7786.c
··· 466 466 return 0; 467 467 } 468 468 469 - int __init pcibios_map_platform_irq(struct pci_dev *pdev, u8 slot, u8 pin) 469 + int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) 470 470 { 471 471 return 71; 472 472 }
+1 -1
arch/sh/include/asm/pci.h
··· 112 112 #endif 113 113 114 114 /* Board-specific fixup routines. */ 115 - int pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin); 115 + int pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin); 116 116 117 117 extern void pcibios_resource_to_bus(struct pci_dev *dev, 118 118 struct pci_bus_region *region, struct resource *res);
+1 -1
arch/sparc/include/asm/leon_pci.h
··· 12 12 struct pci_ops *ops; 13 13 struct resource io_space; 14 14 struct resource mem_space; 15 - int (*map_irq)(struct pci_dev *dev, u8 slot, u8 pin); 15 + int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); 16 16 }; 17 17 18 18 extern void leon_pci_init(struct platform_device *ofdev,
+1 -1
arch/sparc/kernel/leon_pci_grpci2.c
··· 215 215 DEFINE_SPINLOCK(grpci2_dev_lock); 216 216 struct grpci2_priv *grpci2priv; 217 217 218 - int grpci2_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 218 + int grpci2_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 219 219 { 220 220 struct grpci2_priv *priv = dev->bus->sysdata; 221 221 int irq_group;
+1 -1
arch/tile/kernel/pci.c
··· 228 228 * (pin - 1) converts from the PCI standard's [1:4] convention to 229 229 * a normal [0:3] range. 230 230 */ 231 - static int tile_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 231 + static int tile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 232 232 { 233 233 struct pci_controller *controller = 234 234 (struct pci_controller *)dev->sysdata;
+1 -1
arch/unicore32/kernel/pci.c
··· 102 102 writel(readl(PCIBRI_CMD) | PCIBRI_CMD_IO | PCIBRI_CMD_MEM, PCIBRI_CMD); 103 103 } 104 104 105 - static int __init pci_puv3_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 105 + static int __init pci_puv3_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 106 106 { 107 107 if (dev->bus->number == 0) { 108 108 #ifdef CONFIG_ARCH_FPGA /* 4 pci slots */
+1 -1
arch/x86/pci/visws.c
··· 24 24 25 25 unsigned int pci_bus0, pci_bus1; 26 26 27 - static int __init visws_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 27 + static int __init visws_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) 28 28 { 29 29 int irq, bus = dev->bus->number; 30 30
+2 -2
drivers/pci/setup-irq.c
··· 21 21 static void __init 22 22 pdev_fixup_irq(struct pci_dev *dev, 23 23 u8 (*swizzle)(struct pci_dev *, u8 *), 24 - int (*map_irq)(struct pci_dev *, u8, u8)) 24 + int (*map_irq)(const struct pci_dev *, u8, u8)) 25 25 { 26 26 u8 pin, slot; 27 27 int irq = 0; ··· 56 56 57 57 void __init 58 58 pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *), 59 - int (*map_irq)(struct pci_dev *, u8, u8)) 59 + int (*map_irq)(const struct pci_dev *, u8, u8)) 60 60 { 61 61 struct pci_dev *dev = NULL; 62 62 for_each_pci_dev(dev)
+1 -1
include/linux/pci.h
··· 879 879 void pdev_sort_resources(struct pci_dev *, struct resource_list *); 880 880 int pci_enable_resources(struct pci_dev *, int mask); 881 881 void pci_fixup_irqs(u8 (*)(struct pci_dev *, u8 *), 882 - int (*)(struct pci_dev *, u8, u8)); 882 + int (*)(const struct pci_dev *, u8, u8)); 883 883 #define HAVE_PCI_REQ_REGIONS 2 884 884 int __must_check pci_request_regions(struct pci_dev *, const char *); 885 885 int __must_check pci_request_regions_exclusive(struct pci_dev *, const char *);