diff options
author | Emilio G. Cota <cota@braap.org> | 2009-08-10 16:52:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:02:10 -0700 |
commit | 51a569f757f233bcffbffcdfeeff510916991a55 (patch) | |
tree | 4d9d409e0eb20c76ebcdf0e9f348f5df66d6a198 /drivers/staging/vme | |
parent | a37b0dad8b3d278fa64482ccd2381c947f432bf7 (diff) |
Staging: vme: fix {master,slave}_get check bug
It's checking the wrong functions; fix it.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Acked-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vme')
-rw-r--r-- | drivers/staging/vme/vme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vme/vme.c b/drivers/staging/vme/vme.c index d6ad12e3cb54..7b442b99fa34 100644 --- a/drivers/staging/vme/vme.c +++ b/drivers/staging/vme/vme.c @@ -338,7 +338,7 @@ int vme_slave_get (struct vme_resource *resource, int *enabled, image = list_entry(resource->entry, struct vme_slave_resource, list); - if (bridge->slave_set == NULL) { + if (bridge->slave_get == NULL) { printk("vme_slave_get not supported\n"); return -EINVAL; } @@ -499,7 +499,7 @@ int vme_master_get (struct vme_resource *resource, int *enabled, image = list_entry(resource->entry, struct vme_master_resource, list); - if (bridge->master_set == NULL) { + if (bridge->master_get == NULL) { printk("vme_master_set not supported\n"); return -EINVAL; } |