]> git.karo-electronics.de Git - linux-beck.git/commit
[media] cec: fix ioctl return code when not registered
authorHans Verkuil <hansverk@cisco.com>
Wed, 24 Aug 2016 10:17:22 +0000 (07:17 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 9 Sep 2016 13:38:33 +0000 (10:38 -0300)
commit60815d4a78204915f5cdf79a536bc96d5d23ae5f
tree397fcf5b914cd9a75183d84752c1a89f5400b201
parenta179b69359feb26ddb148bb6a2c0c53a8d1dc5be
[media] cec: fix ioctl return code when not registered

Don't return the confusing -EIO error code when the device is not registered,
instead return -ENODEV which is the proper thing to do in this situation.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-api.c