diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-07-12 03:45:27 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-28 20:53:32 -0400 |
commit | 6312236fe82bbd3b0e1dee60b3eb3b270a2f6aeb (patch) | |
tree | cf23f21d9d423e7999270cb4d7050697c72ea80b /arch/ppc64/kernel/iSeries_vio.c | |
parent | 8c65b5c955b8598d9c63b4e97392377269873a54 (diff) |
[PATCH] ppc64: make the bus matching function platform specific
This patch allows us to have a different bus if matching function for
each platform.
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.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/iSeries_vio.c b/arch/ppc64/kernel/iSeries_vio.c index 48f0ebf4405..2656b1ca834 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 | */ | ||
121 | static 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 | */ |
120 | static int __init vio_bus_init_iseries(void) | 130 | static 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; |