From 2d976e3d641bfadeb21e9db49cab9cbe128a466e Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Thu, 31 Oct 2013 10:07:51 +1000 Subject: [PATCH] drm/nouveau/gpio: return different error code for not found vs invalid Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/core/subdev/gpio/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c b/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c index d422acc9af15..f572c2804c32 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/gpio/base.c @@ -67,7 +67,7 @@ nouveau_gpio_find(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, } } - return -EINVAL; + return -ENOENT; } static int