aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/bt8xx/dst.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-08-08 08:10:09 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:29 -0400
commit0912ad0b0fdee374f1f49d75fee341980f0868b6 (patch)
tree9845dc4c6e64d7964f1e7d3bcb7606a128f51711 /drivers/media/dvb/bt8xx/dst.c
parentf52a838b74be70b4054ab27e435e9acb92d8c50a (diff)
V4L/DVB (4392): Fix dst_ca attach
Move the call to dst_attach into the dst_attach function to eliminate problems caused with dvb_attach. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx/dst.c')
-rw-r--r--drivers/media/dvb/bt8xx/dst.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c
index a853c14c61d3..52b6fb2455f9 100644
--- a/drivers/media/dvb/bt8xx/dst.c
+++ b/drivers/media/dvb/bt8xx/dst.c
@@ -1715,12 +1715,6 @@ static int dst_get_frontend(struct dvb_frontend *fe, struct dvb_frontend_paramet
1715static void dst_release(struct dvb_frontend *fe) 1715static void dst_release(struct dvb_frontend *fe)
1716{ 1716{
1717 struct dst_state *state = fe->demodulator_priv; 1717 struct dst_state *state = fe->demodulator_priv;
1718
1719#ifdef CONFIG_DVB_CORE_ATTACH
1720 if (state->dst_hw_cap & DST_TYPE_HAS_CA)
1721 symbol_put(dst_ca_attach);
1722#endif
1723
1724 kfree(state); 1718 kfree(state);
1725} 1719}
1726 1720
@@ -1758,6 +1752,11 @@ struct dst_state *dst_attach(struct dst_state *state, struct dvb_adapter *dvb_ad
1758 } 1752 }
1759 state->frontend.demodulator_priv = state; 1753 state->frontend.demodulator_priv = state;
1760 1754
1755 /* Attach other DST peripherals if any */
1756 /* Conditional Access device */
1757 if (state->dst_hw_cap & DST_TYPE_HAS_CA)
1758 dst_ca_attach(state, dvb_adapter);
1759
1761 return state; /* Manu (DST is a card not a frontend) */ 1760 return state; /* Manu (DST is a card not a frontend) */
1762} 1761}
1763 1762