aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/83xx/pci.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2006-02-02 13:50:44 -0600
committerPaul Mackerras <paulus@samba.org>2006-02-07 22:38:42 +1100
commit30f5933657d17fbbc743ce9522543ba50ce2e834 (patch)
tree90a3cf48d9545c111402e504269e3c46d23bec78 /arch/powerpc/platforms/83xx/pci.c
parent4b10cfd40e3fa1c1663b9c9fa22260d41e669c6f (diff)
[PATCH] powerpc: Cleanup MPC83xx platform support
Moved some code around so its usable by more systems than just the MPC834x SYS. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/pci.c')
-rw-r--r--arch/powerpc/platforms/83xx/pci.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/83xx/pci.c b/arch/powerpc/platforms/83xx/pci.c
index 469cdacc5bd..70e28fcdb38 100644
--- a/arch/powerpc/platforms/83xx/pci.c
+++ b/arch/powerpc/platforms/83xx/pci.c
@@ -36,7 +36,16 @@
int mpc83xx_pci2_busno;
-#ifdef CONFIG_PCI
+int mpc83xx_exclude_device(u_char bus, u_char devfn)
+{
+ if (bus == 0 && PCI_SLOT(devfn) == 0)
+ return PCIBIOS_DEVICE_NOT_FOUND;
+ if (mpc83xx_pci2_busno)
+ if (bus == (mpc83xx_pci2_busno) && PCI_SLOT(devfn) == 0)
+ return PCIBIOS_DEVICE_NOT_FOUND;
+ return PCIBIOS_SUCCESSFUL;
+}
+
int __init add_bridge(struct device_node *dev)
{
int len;
@@ -95,5 +104,3 @@ int __init add_bridge(struct device_node *dev)
return 0;
}
-
-#endif