Skip to content

Commit

Permalink
Staging: vme: fix {master,slave}_get check bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emilio G. Cota authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent a37b0da commit 51a569f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/vme/vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 51a569f

Please sign in to comment.