summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-10-31 10:07:51 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-11-08 15:40:00 +1000
commit2d976e3d641bfadeb21e9db49cab9cbe128a466e (patch)
tree8ed4e05c3a992769aa835cbdc40b2f4cbd498322 /drivers/gpu/drm
parentb9ed919f1c8f18f419ca6159fdfec656690800b6 (diff)
downloadlinux-2d976e3d641bfadeb21e9db49cab9cbe128a466e.tar.bz2
drm/nouveau/gpio: return different error code for not found vs invalid
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/gpio/base.c2
1 files changed, 1 insertions, 1 deletions
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