]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitb65aa2605683d90966a16abc68112c1fd9e3f3d8
tree40bac19f4c8185f571abd577e5feb65884bebbb2
parent060a5bd764a1d798c20eceeaac5399c672334960
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