]> git.baikalelectronics.ru Git - kernel.git/commit
[media] drxk: prevent doing something wrong when init is not ok
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 29 Jun 2012 18:45:04 +0000 (15:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 29 Jun 2012 22:04:32 +0000 (19:04 -0300)
commit847a0d08153fde5405c8daf74f063329c97bd0a5
tree10a368c4af41c3d66a4665458455fb9ce785848a
parentbae77536fd325f01d904aeb4e6130c29a8c98126
[media] drxk: prevent doing something wrong when init is not ok

If firmware is not loaded for some reason, or if it is not ready
yet, it makes no sense to honour to any DVB callbacks.

So, return -EAGAIN, as the error condition may be temporary.
If the device doesn't initialize, either because it requires a
firmware or because there's an error during init_drxk, returns
-ENODEV, to indicate such error, on all DVB callbacks.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/drxk_hard.c
drivers/media/dvb/frontends/drxk_hard.h