From: Ben Skeggs Date: Thu, 31 Oct 2013 00:07:51 +0000 (+1000) Subject: drm/nouveau/gpio: return different error code for not found vs invalid X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d976e3d641bfadeb21e9db49cab9cbe128a466e;p=linux-beck.git drm/nouveau/gpio: return different error code for not found vs invalid Signed-off-by: Ben Skeggs --- 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