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.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/iSeries_vio.c b/arch/ppc64/kernel/iSeries_vio.c
index 48f0ebf4405d..2656b1ca834d 100644
--- a/arch/ppc64/kernel/iSeries_vio.c
+++ b/arch/ppc64/kernel/iSeries_vio.c
@@ -115,13 +115,23 @@ void __init probe_bus_iseries(void)
115} 115}
116 116
117/** 117/**
118 * vio_match_device_iseries: - Tell if a iSeries VIO device matches a
119 * vio_device_id
120 */
121static int vio_match_device_iseries(const struct vio_device_id *id,
122 const struct vio_dev *dev)
123{
124 return strncmp(dev->type, id->type, strlen(id->type)) == 0;
125}
126
127/**
118 * vio_bus_init_iseries: - Initialize the iSeries virtual IO bus 128 * vio_bus_init_iseries: - Initialize the iSeries virtual IO bus
119 */ 129 */
120static int __init vio_bus_init_iseries(void) 130static int __init vio_bus_init_iseries(void)
121{ 131{
122 int err; 132 int err;
123 133
124 err = vio_bus_init(); 134 err = vio_bus_init(vio_match_device_iseries);
125 if (err == 0) { 135 if (err == 0) {
126 iommu_vio_init(); 136 iommu_vio_init();
127 vio_bus_device.iommu_table = &vio_iommu_table; 137 vio_bus_device.iommu_table = &vio_iommu_table;