media: dvb_frontend: fix return error code
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Dec 2017 12:48:12 +0000 (07:48 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 12 Dec 2017 12:50:14 +0000 (07:50 -0500)
commit330dada5957e3ca0c8811b14c45e3ac42c694651
tree252927ccbae9bb9aa0e7e3fcfa0965a7891eec35
parent5e0d3c3a2c67c060e65e152558fa3cbdabdafe6c
media: dvb_frontend: fix return error code

The correct error code when a function is not defined is
-ENOTSUPP. It was typoed wrong as -EOPNOTSUPP, with,
unfortunately, exists, but it is not used by the DVB core.

Thanks-to: Geert Uytterhoeven <geert@linux-m68k.org>
Thanks-to: Arnd Bergmann <arnd@arndb.de>

To make me revisit this code.

Fixes: a9cb97c3e628 ("media: dvb_frontend: be sure to init dvb_frontend_handle_ioctl() return code")
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvb_frontend.c