aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/iSeries_vio.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc64/kernel/iSeries_vio.c')
-rw-r--r--arch/ppc64/kernel/iSeries_vio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/iSeries_vio.c b/arch/ppc64/kernel/iSeries_vio.c
index d0960a82708c..6b754b0c8344 100644
--- a/arch/ppc64/kernel/iSeries_vio.c
+++ b/arch/ppc64/kernel/iSeries_vio.c
@@ -131,6 +131,10 @@ static int vio_match_device_iseries(const struct vio_device_id *id,
131 return strncmp(dev->type, id->type, strlen(id->type)) == 0; 131 return strncmp(dev->type, id->type, strlen(id->type)) == 0;
132} 132}
133 133
134static struct vio_bus_ops vio_bus_ops_iseries = {
135 .match = vio_match_device_iseries,
136};
137
134/** 138/**
135 * vio_bus_init_iseries: - Initialize the iSeries virtual IO bus 139 * vio_bus_init_iseries: - Initialize the iSeries virtual IO bus
136 */ 140 */
@@ -138,7 +142,7 @@ static int __init vio_bus_init_iseries(void)
138{ 142{
139 int err; 143 int err;
140 144
141 err = vio_bus_init(vio_match_device_iseries, NULL, NULL); 145 err = vio_bus_init(&vio_bus_ops_iseries);
142 if (err == 0) { 146 if (err == 0) {
143 iommu_vio_init(); 147 iommu_vio_init();
144 vio_bus_device.iommu_table = &vio_iommu_table; 148 vio_bus_device.iommu_table = &vio_iommu_table;