From: Michael Krufky Date: Sat, 6 Sep 2008 16:54:45 +0000 (-0300) Subject: V4L/DVB (8950): xc5000: prevent an OOPS if analog driver is unloaded while digital... X-Git-Tag: v2.6.28-rc1~601^2~179 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a6003c20771ca16fc6386b5fd258df2f2fa8232;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed