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>
This commit is contained in:
Emilio G. Cota 2009-08-10 16:52:42 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель a37b0dad8b
Коммит 51a569f757
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}