summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/budget-av.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-06-04 20:32:55 +0000
committerMichael Hunold <devnull@localhost>2004-06-04 20:32:55 +0000
commit6e2d77b3a2d7efac85a5671e4c476cf8f8bc1faa (patch)
tree171680deb24007cf00f744ab059c914e99c972ed /linux/drivers/media/dvb/ttpci/budget-av.c
parenta0dac2cdb3964e807e3ffb5df8dd1dd19fd8a91f (diff)
downloadmediapointer-dvb-s2-6e2d77b3a2d7efac85a5671e4c476cf8f8bc1faa.tar.gz
mediapointer-dvb-s2-6e2d77b3a2d7efac85a5671e4c476cf8f8bc1faa.tar.bz2
- same as for budget-ci: make sure the data pointer is valid before budget-core init function is called
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/budget-av.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-av.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-av.c b/linux/drivers/media/dvb/ttpci/budget-av.c
index f4ea0e9e3..7a80f544a 100644
--- a/linux/drivers/media/dvb/ttpci/budget-av.c
+++ b/linux/drivers/media/dvb/ttpci/budget-av.c
@@ -208,13 +208,13 @@ static int budget_av_attach (struct saa7146_dev* dev,
memset(budget_av, 0, sizeof(struct budget_av));
+ dev->ext_priv = budget_av;
+
if ((err = ttpci_budget_init(&budget_av->budget, dev, info))) {
kfree(budget_av);
return err;
}
- dev->ext_priv = budget_av;
-
/* knc1 initialization */
saa7146_write(dev, DD1_STREAM_B, 0x04000000);
saa7146_write(dev, DD1_INIT, 0x07000600);