summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/iSeries_vio.c
diff options
context:
space:
mode:
authorStephen Rothwell2005-07-12 09:42:49 +0200
committerPaul Mackerras2005-08-29 02:53:32 +0200
commit8c65b5c955b8598d9c63b4e97392377269873a54 (patch)
tree2afafee95db21a3ddadf888206c37f4a151272a0 /arch/ppc64/kernel/iSeries_vio.c
parent[PATCH] ppc64: split iSeries specific parts out of vio.c (diff)
downloadkernel-qcow2-linux-8c65b5c955b8598d9c63b4e97392377269873a54.tar.gz
kernel-qcow2-linux-8c65b5c955b8598d9c63b4e97392377269873a54.tar.xz
kernel-qcow2-linux-8c65b5c955b8598d9c63b4e97392377269873a54.zip
[PATCH] ppc64: move iSeries vio iommu init
Since the iSeries vio iommu tables cannot be used until after the vio bus has been initialised, move the initialisation of the tables to there. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/iSeries_vio.c')
-rw-r--r--arch/ppc64/kernel/iSeries_vio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/iSeries_vio.c b/arch/ppc64/kernel/iSeries_vio.c
index e876b4380278..48f0ebf4405d 100644
--- a/arch/ppc64/kernel/iSeries_vio.c
+++ b/arch/ppc64/kernel/iSeries_vio.c
@@ -27,7 +27,7 @@ EXPORT_SYMBOL(iSeries_vio_dev);
static struct iommu_table veth_iommu_table;
static struct iommu_table vio_iommu_table;
-void __init iommu_vio_init(void)
+static void __init iommu_vio_init(void)
{
struct iommu_table *t;
struct iommu_table_cb cb;
@@ -123,6 +123,7 @@ static int __init vio_bus_init_iseries(void)
err = vio_bus_init();
if (err == 0) {
+ iommu_vio_init();
vio_bus_device.iommu_table = &vio_iommu_table;
iSeries_vio_dev = &vio_bus_device.dev;
probe_bus_iseries();