]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9618): tvaudio: add additional logic to avoid OOPS
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Nov 2008 17:01:15 +0000 (14:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 14 Nov 2008 16:24:44 +0000 (14:24 -0200)
commit099b7fcc770764ec06441066fddd90b97d868e11
tree3d361ef75ebd2a9298f46b5f229dd7552695fe9a
parentdd03e970a18f266faf120e47355349d224f64e3f
V4L/DVB (9618): tvaudio: add additional logic to avoid OOPS

This patch checks for volume, bass, treble, set mode and get mode
callbacks before actually enabling the code that would use them.

Instead of aborting the driver for load, this patch will allow it to
load with a reduced number of functionatities.

This prevents OOPS if some board entry is missing a needed callback.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvaudio.c