Fix compile problem without CONFIG_PCI
PATCH 1/1 Fix compile problem without CONFIG_PCI
Compile fails without defining CONFIG_PCI. The patch fix this.
Signed-off-by Li Yang <[email protected]>
---
arch/powerpc/kernel/prom_parse.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
arch/powerpc/kernel/prom_parse.c +0 -0
@@ -598,10 +598,12 @@ static struct device_node *of_irq_find_preturn p;
}
+#ifdef CONFIG_PCI
static u8 of_irq_pci_swizzle(u8 slot, u8 pin)
{
return (((pin - 1) + slot) % 4) + 1;
}
+#endif
/* This doesn't need to be called if you don't have any special workaround
* flags to pass
@@ -891,6 +893,7 @@ int of_irq_map_one(struct device_node *d
}EXPORT_SYMBOL_GPL(of_irq_map_one);
+#ifdef CONFIG_PCI
int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq) {
struct device_node *dn, *ppnode;
@@ -967,4 +970,4 @@ #endif
return of_irq_map_raw(ppnode, &lspec, laddr, out_irq);
}EXPORT_SYMBOL_GPL(of_irq_map_pci);
-
+#endif