aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/vio.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-17 02:42:59 -0400
committerPaul Mackerras <paulus@samba.org>2005-08-29 23:31:56 -0400
commitfb120da678c517f72d4b39932062c2191827b331 (patch)
tree0ae6b9d42e0c66293c3cc567f2f8279ca2e89cde /arch/ppc64/kernel/vio.c
parent71d276d751ff5ddba28312aecefb174b20a5b970 (diff)
[PATCH] Make MODULE_DEVICE_TABLE work for vio devices
Make MODULE_DEVICE_TABLE work for vio devices. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/vio.c')
-rw-r--r--arch/ppc64/kernel/vio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/vio.c b/arch/ppc64/kernel/vio.c
index 93c437a0911b..c90e1dd875ce 100644
--- a/arch/ppc64/kernel/vio.c
+++ b/arch/ppc64/kernel/vio.c
@@ -111,7 +111,7 @@ EXPORT_SYMBOL(vio_unregister_driver);
111static const struct vio_device_id *vio_match_device( 111static const struct vio_device_id *vio_match_device(
112 const struct vio_device_id *ids, const struct vio_dev *dev) 112 const struct vio_device_id *ids, const struct vio_dev *dev)
113{ 113{
114 while (ids->type) { 114 while (ids->type[0] != '\0') {
115 if (vio_bus_ops.match(ids, dev)) 115 if (vio_bus_ops.match(ids, dev))
116 return ids; 116 return ids;
117 ids++; 117 ids++;