diff options
Diffstat (limited to 'arch/ppc64/kernel/vio.c')
-rw-r--r-- | arch/ppc64/kernel/vio.c | 2 |
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); | |||
111 | static const struct vio_device_id *vio_match_device( | 111 | static 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++; |