]> 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)
commit4f3934d2f760e01e1fee8524a6011a2e19f16fe3
tree72b0ebe8f312aae0530a96ef739fe7a35d398a3a
parent8d45c02ee8cde69327bb3d2c6627a9f42ad61c68
[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