]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mt2063: don't crash if device is not initialized
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Jul 2011 00:22:29 +0000 (21:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jan 2012 00:48:59 +0000 (22:48 -0200)
commit2fe04c9c80aa85242a229d5336207cbf97f5eb9b
tree72b0ebe8f312aae0530a96ef739fe7a35d398a3a
parentaa9b053f3d792e1c86b7cd09bc0dcea61586e2ff
[media] mt2063: don't crash if device is not initialized

Instead of crash, return -ENODEV, if the device is not poperly
initialized.

Also, give a second chance for it to initialize, at set_params
calls.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/mt2063.c