linux-mips
[Top] [All Lists]

[PATCH] Fix gcc warning in arch/mips/pci/pci.c

To: linux-mips@linux-mips.org
Subject: [PATCH] Fix gcc warning in arch/mips/pci/pci.c
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 13 Jul 2007 01:16:25 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Now pcibios_map_irq() takes a const pointer.  Cast it to adapt
pci_fixup_irqs().

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 67e01fd..ecfb144 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -160,7 +160,8 @@ static int __init pcibios_init(void)
 
        if (!pci_probe_only)
                pci_assign_unassigned_resources();
-       pci_fixup_irqs(common_swizzle, pcibios_map_irq);
+       pci_fixup_irqs(common_swizzle,
+                      (int (*)(struct pci_dev *, u8, u8))pcibios_map_irq);
 
        if ((dev = pci_get_class(PCI_CLASS_BRIDGE_EISA << 8, NULL)) != NULL ||
            (dev = pci_get_class(PCI_CLASS_BRIDGE_ISA << 8, NULL)) != NULL) {

<Prev in Thread] Current Thread [Next in Thread>