diff options
author | Paul Mackerras <paulus@samba.org> | 2006-08-25 00:56:07 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-08-25 00:56:07 -0400 |
commit | ea0763a7e62f60f3e166327268a80f16ad806718 (patch) | |
tree | de54ec5e5d5a49b3cba81b096b7572852aa6f5a9 /arch/powerpc/kernel/prom_parse.c | |
parent | 271c511db9d37d6797745adb1f151a8bd2838c6f (diff) | |
parent | c85c41ad73c6db4cf4cc98c595cc5e2fdbdb53d5 (diff) |
Merge branch 'merge'
Diffstat (limited to 'arch/powerpc/kernel/prom_parse.c')
-rw-r--r-- | arch/powerpc/kernel/prom_parse.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c index 59f69d34cb67..603203276ef6 100644 --- a/arch/powerpc/kernel/prom_parse.c +++ b/arch/powerpc/kernel/prom_parse.c | |||
@@ -601,11 +601,6 @@ static struct device_node *of_irq_find_parent(struct device_node *child) | |||
601 | return p; | 601 | return p; |
602 | } | 602 | } |
603 | 603 | ||
604 | static u8 of_irq_pci_swizzle(u8 slot, u8 pin) | ||
605 | { | ||
606 | return (((pin - 1) + slot) % 4) + 1; | ||
607 | } | ||
608 | |||
609 | /* This doesn't need to be called if you don't have any special workaround | 604 | /* This doesn't need to be called if you don't have any special workaround |
610 | * flags to pass | 605 | * flags to pass |
611 | */ | 606 | */ |
@@ -895,6 +890,12 @@ int of_irq_map_one(struct device_node *device, int index, struct of_irq *out_irq | |||
895 | } | 890 | } |
896 | EXPORT_SYMBOL_GPL(of_irq_map_one); | 891 | EXPORT_SYMBOL_GPL(of_irq_map_one); |
897 | 892 | ||
893 | #ifdef CONFIG_PCI | ||
894 | static u8 of_irq_pci_swizzle(u8 slot, u8 pin) | ||
895 | { | ||
896 | return (((pin - 1) + slot) % 4) + 1; | ||
897 | } | ||
898 | |||
898 | int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq) | 899 | int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq) |
899 | { | 900 | { |
900 | struct device_node *dn, *ppnode; | 901 | struct device_node *dn, *ppnode; |
@@ -971,4 +972,4 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq) | |||
971 | return of_irq_map_raw(ppnode, &lspec, laddr, out_irq); | 972 | return of_irq_map_raw(ppnode, &lspec, laddr, out_irq); |
972 | } | 973 | } |
973 | EXPORT_SYMBOL_GPL(of_irq_map_pci); | 974 | EXPORT_SYMBOL_GPL(of_irq_map_pci); |
974 | 975 | #endif /* CONFIG_PCI */ | |