]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7128): tuner: properly handle failed calls to simple_tuner_attach
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 22 Apr 2008 17:41:51 +0000 (14:41 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 16:42:25 +0000 (13:42 -0300)
commit8553170b41a3a71e648731869d1b5f1b879b4f63
tree40bac19f4c8185f571abd577e5feb65884bebbb2
parentfc98f8a02034f5d9044bbebf2cc058566abdf510
V4L/DVB (7128): tuner: properly handle failed calls to simple_tuner_attach

If simple_tuner_attach fails, set t->type to TUNER_ABSENT,
set t->mode_mask to T_UNINITIALIZED, and exit the set_type function.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c