aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/pci/fixup-ip32.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-07-10 12:33:00 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-07-10 12:33:00 -0400
commit19df0d1169b3ddcc84933794d1401aaafe2f0000 (patch)
tree3548b6899e921056de3aaf76840fe4bb8863e1ac /arch/mips/pci/fixup-ip32.c
parent6b5bf509317c013ea0a7c166affc1d4631720d85 (diff)
[MIPS] PCI: Make dev pointer argument of pcibios_map_irq const.
This is to break the code of people who think they are supposed to scribble into the pci device structure - it's off limits. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci/fixup-ip32.c')
-rw-r--r--arch/mips/pci/fixup-ip32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/fixup-ip32.c b/arch/mips/pci/fixup-ip32.c
index 3e66b0aa63ca..190fffd08d3e 100644
--- a/arch/mips/pci/fixup-ip32.c
+++ b/arch/mips/pci/fixup-ip32.c
@@ -39,7 +39,7 @@ static char irq_tab_mace[][5] __initdata = {
39 * irqs. I suppose a device without a pin A will thank us for doing it 39 * irqs. I suppose a device without a pin A will thank us for doing it
40 * right if there exists such a broken piece of crap. 40 * right if there exists such a broken piece of crap.
41 */ 41 */
42int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin) 42int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
43{ 43{
44 return irq_tab_mace[slot][pin]; 44 return irq_tab_mace[slot][pin];
45} 45}