summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-17 16:42:59 +1000
committerPaul Mackerras <paulus@samba.org>2005-08-30 13:31:56 +1000
commitfb120da678c517f72d4b39932062c2191827b331 (patch)
tree0ae6b9d42e0c66293c3cc567f2f8279ca2e89cde /arch
parent71d276d751ff5ddba28312aecefb174b20a5b970 (diff)
downloadop-kernel-dev-fb120da678c517f72d4b39932062c2191827b331.zip
op-kernel-dev-fb120da678c517f72d4b39932062c2191827b331.tar.gz
[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')
-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 93c437a..c90e1dd 100644
--- a/arch/ppc64/kernel/vio.c
+++ b/arch/ppc64/kernel/vio.c
@@ -111,7 +111,7 @@ EXPORT_SYMBOL(vio_unregister_driver);
static const struct vio_device_id *vio_match_device(
const struct vio_device_id *ids, const struct vio_dev *dev)
{
- while (ids->type) {
+ while (ids->type[0] != '\0') {
if (vio_bus_ops.match(ids, dev))
return ids;
ids++;
OpenPOWER on IntegriCloud