Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19df0d11 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 6b5bf509
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ static char irq_tab[][5] __initdata = {
	{0,	0,	0,	0,	0 }	/* 21: Unused */
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
	return irq_tab[slot][pin];
}
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@

extern char irq_tab_alchemy[][5];

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
	return irq_tab_alchemy[slot][pin];
}
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ static char irq_tab_capcella[][5] __initdata = {
 [14] = { -1, INTA, INTB, INTC, INTD }
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
	return irq_tab_capcella[slot][pin];
}
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ static char irq_tab_raq2[] __initdata = {
  [COBALT_PCICONF_ETH1]    = COBALT_ETH1_IRQ
};

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
	if (cobalt_board_id < COBALT_BRD_ID_QUBE2)
		return irq_tab_qube1[slot];
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ static void __devinit emma2rh_pci_host_fixup(struct pci_dev *dev)
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_EMMA2RH,
			 emma2rh_pci_host_fixup);

int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
	return irq_map[slot][pin];
}
Loading