diff options
author | Arnd Bergmann <arnd@arndb.de> | 2007-06-17 19:06:57 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-06-29 02:56:53 -0400 |
commit | d66584086717f6dda76d523ef58363deaa3efe51 (patch) | |
tree | 3b89cca3f5f54f8912f0a8b354193ff9454ae954 /arch/powerpc/platforms/embedded6xx | |
parent | 3dfaa762b59743719f00f2dc2f559de59f5502f7 (diff) |
[POWERPC] fix building without PCI
Some code looks can be configured to be built without
PCI support, but does not work properly.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/linkstation.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c index f3ae0a728158..885c789a8c2d 100644 --- a/arch/powerpc/platforms/embedded6xx/linkstation.c +++ b/arch/powerpc/platforms/embedded6xx/linkstation.c | |||
@@ -56,6 +56,7 @@ static struct mtd_partition linkstation_physmap_partitions[] = { | |||
56 | 56 | ||
57 | static int __init linkstation_add_bridge(struct device_node *dev) | 57 | static int __init linkstation_add_bridge(struct device_node *dev) |
58 | { | 58 | { |
59 | #ifdef CONFIG_PCI | ||
59 | int len; | 60 | int len; |
60 | struct pci_controller *hose; | 61 | struct pci_controller *hose; |
61 | const int *bus_range; | 62 | const int *bus_range; |
@@ -78,7 +79,7 @@ static int __init linkstation_add_bridge(struct device_node *dev) | |||
78 | /* Interpret the "ranges" property */ | 79 | /* Interpret the "ranges" property */ |
79 | /* This also maps the I/O region and sets isa_io/mem_base */ | 80 | /* This also maps the I/O region and sets isa_io/mem_base */ |
80 | pci_process_bridge_OF_ranges(hose, dev, 1); | 81 | pci_process_bridge_OF_ranges(hose, dev, 1); |
81 | 82 | #endif | |
82 | return 0; | 83 | return 0; |
83 | } | 84 | } |
84 | 85 | ||