]> git.karo-electronics.de Git - mv-sheeva.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)
commit1b0bfee39d531ffaf91b3294a2204b2ed8151fb8
tree72b0ebe8f312aae0530a96ef739fe7a35d398a3a
parentb5a910679b2abfa12a5e70c236f4205c5e773c11
[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