diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-09-21 00:31:02 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-02 21:48:43 -0400 |
commit | c868078ed82e3651b16f68a420ae7568de2102db (patch) | |
tree | ff8ed1971307221a664910a36efea9512a89e655 /arch/powerpc/kernel/vio.c | |
parent | c546726293912c932f3c14d06b0f68e175d70781 (diff) |
[POWERPC] Simplify vio_bus_init a little for legacy iSeries
iSeries_vio_dev was already statically initialised and we can remove
one set of #ifdef CONFIG_PPC_ISERIES guards.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
-rw-r--r-- | arch/powerpc/kernel/vio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index 54645baab652..ee15c2280aea 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -64,6 +64,12 @@ static void __init iommu_vio_init(void) | |||
64 | printk("Virtual Bus VETH TCE table failed.\n"); | 64 | printk("Virtual Bus VETH TCE table failed.\n"); |
65 | if (!iommu_init_table(&vio_iommu_table, -1)) | 65 | if (!iommu_init_table(&vio_iommu_table, -1)) |
66 | printk("Virtual Bus VIO TCE table failed.\n"); | 66 | printk("Virtual Bus VIO TCE table failed.\n"); |
67 | vio_bus_device.dev.archdata.dma_ops = &dma_iommu_ops; | ||
68 | vio_bus_device.dev.archdata.dma_data = &vio_iommu_table; | ||
69 | } | ||
70 | #else | ||
71 | static void __init iommu_vio_init(void) | ||
72 | { | ||
67 | } | 73 | } |
68 | #endif | 74 | #endif |
69 | 75 | ||
@@ -282,14 +288,8 @@ static int __init vio_bus_init(void) | |||
282 | int err; | 288 | int err; |
283 | struct device_node *node_vroot; | 289 | struct device_node *node_vroot; |
284 | 290 | ||
285 | #ifdef CONFIG_PPC_ISERIES | 291 | if (firmware_has_feature(FW_FEATURE_ISERIES)) |
286 | if (firmware_has_feature(FW_FEATURE_ISERIES)) { | ||
287 | iommu_vio_init(); | 292 | iommu_vio_init(); |
288 | vio_bus_device.dev.archdata.dma_ops = &dma_iommu_ops; | ||
289 | vio_bus_device.dev.archdata.dma_data = &vio_iommu_table; | ||
290 | iSeries_vio_dev = &vio_bus_device.dev; | ||
291 | } | ||
292 | #endif /* CONFIG_PPC_ISERIES */ | ||
293 | 293 | ||
294 | err = bus_register(&vio_bus_type); | 294 | err = bus_register(&vio_bus_type); |
295 | if (err) { | 295 | if (err) { |