Commit 51a569f7 authored by Emilio G. Cota's avatar Emilio G. Cota Committed by Greg Kroah-Hartman

Staging: vme: fix {master,slave}_get check bug

It's checking the wrong functions; fix it.
Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
Acked-by: default avatarMartyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a37b0dad
...@@ -338,7 +338,7 @@ int vme_slave_get (struct vme_resource *resource, int *enabled, ...@@ -338,7 +338,7 @@ int vme_slave_get (struct vme_resource *resource, int *enabled,
image = list_entry(resource->entry, struct vme_slave_resource, list); 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"); printk("vme_slave_get not supported\n");
return -EINVAL; return -EINVAL;
} }
...@@ -499,7 +499,7 @@ int vme_master_get (struct vme_resource *resource, int *enabled, ...@@ -499,7 +499,7 @@ int vme_master_get (struct vme_resource *resource, int *enabled,
image = list_entry(resource->entry, struct vme_master_resource, list); 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"); printk("vme_master_set not supported\n");
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment