diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-04-27 03:21:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-04-29 04:02:01 -0400 |
commit | dd721ffd95d5e1516380da0b254ef737582a258f (patch) | |
tree | fc31c2124b0de8b301622d755e444e4d5acb95b1 /arch/powerpc/platforms/pseries | |
parent | e10fa77368dff31140451fac04d78d9f51f0f3ac (diff) |
[PATCH] powerpc: use a common vio_match_device routine
This requires the compatible properties having vaules that are empty
strings instead of just being empty properties.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r-- | arch/powerpc/platforms/pseries/vio.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/pseries/vio.c b/arch/powerpc/platforms/pseries/vio.c index b3925aefdac6..d2891661d87b 100644 --- a/arch/powerpc/platforms/pseries/vio.c +++ b/arch/powerpc/platforms/pseries/vio.c | |||
@@ -27,17 +27,6 @@ | |||
27 | extern struct subsystem devices_subsys; /* needed for vio_find_name() */ | 27 | extern struct subsystem devices_subsys; /* needed for vio_find_name() */ |
28 | 28 | ||
29 | /** | 29 | /** |
30 | * vio_match_device_pseries: - Tell if a pSeries VIO device matches a | ||
31 | * vio_device_id | ||
32 | */ | ||
33 | static int vio_match_device_pseries(const struct vio_device_id *id, | ||
34 | const struct vio_dev *dev) | ||
35 | { | ||
36 | return (strncmp(dev->type, id->type, strlen(id->type)) == 0) && | ||
37 | device_is_compatible(dev->dev.platform_data, id->compat); | ||
38 | } | ||
39 | |||
40 | /** | ||
41 | * vio_build_iommu_table: - gets the dma information from OF and | 30 | * vio_build_iommu_table: - gets the dma information from OF and |
42 | * builds the TCE tree. | 31 | * builds the TCE tree. |
43 | * @dev: the virtual device. | 32 | * @dev: the virtual device. |
@@ -76,7 +65,6 @@ static struct iommu_table *vio_build_iommu_table(struct vio_dev *dev) | |||
76 | } | 65 | } |
77 | 66 | ||
78 | static struct vio_bus_ops vio_bus_ops_pseries = { | 67 | static struct vio_bus_ops vio_bus_ops_pseries = { |
79 | .match = vio_match_device_pseries, | ||
80 | .build_iommu_table = vio_build_iommu_table, | 68 | .build_iommu_table = vio_build_iommu_table, |
81 | }; | 69 | }; |
82 | 70 | ||