[media] lirc_dev: fix error return value
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 6 Jul 2016 09:01:24 +0000 (06:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 18:26:52 +0000 (15:26 -0300)
commitb408809487e0b80fdd7869f92b5ca3be55923e9d
tree4f9b4323717c9fc24842c28d34e31b86af663bae
parent9675ee5a8e42807ebd33bf4934f235911b5647b0
[media] lirc_dev: fix error return value

If ioctl is called, it cannot be a case of invalid system call
number (ENOSYS), that is a ENOTTY case which means that the
device doesn't support that specific ioctl command.

So, replace ENOSYS with ENOTTY.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c