]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (8950): xc5000: prevent an OOPS if analog driver is unloaded while digital...
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 6 Sep 2008 16:54:45 +0000 (13:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 12 Oct 2008 11:37:01 +0000 (09:37 -0200)
commit2a6003c20771ca16fc6386b5fd258df2f2fa8232
tree7f577409cdb779d72b4a657e5f5fc736fde91100
parent89fd28545c7390eb6c63d3d9e6faac78942dd1a4
V4L/DVB (8950): xc5000: prevent an OOPS if analog driver is unloaded while digital is in use

Prevent an OOPS if xc5000_attach was called by tuner.ko before being called by
the DVB adapter driver. The OOPS occurs when a digital tune request is made
after tuner.ko is unloaded.

When tuner.ko is unloaded, it takes the xc5000_config structure with it.

Rather than storing a pointer to the xc5000_config structure, just store the
if_khz and tuner_callback inside the xc5000_priv internal state structure.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c