From: Emilio G. Cota Date: Mon, 10 Aug 2009 14:52:42 +0000 (+0200) Subject: Staging: vme: fix {master,slave}_get check bug X-Git-Tag: MMI-PSA29.97-13-9~26941^2~234 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51a569f757f233bcffbffcdfeeff510916991a55;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: vme: fix {master,slave}_get check bug It's checking the wrong functions; fix it. Signed-off-by: Emilio G. Cota Acked-by: Martyn Welch Signed-off-by: Greg Kroah-Hartman --- 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; }