drm/nouveau/gpio: return different error code for not found vs invalid

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2013-10-31 10:07:51 +10:00
parent b9ed919f1c
commit 2d976e3d64

View file

@ -67,7 +67,7 @@ nouveau_gpio_find(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line,
}
}
return -EINVAL;
return -ENOENT;
}
static int