diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2006-08-08 14:48:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 10:53:37 -0400 |
commit | bbdd11fa957913d6648cabbca59be1da479180ed (patch) | |
tree | 48d00e950c54a6cb1d04c3eba4e742a0c829ad9e /drivers/media/dvb/bt8xx/dst.c | |
parent | e4a49d76ca4e2c0b2b4c89d59d43486d781ffe95 (diff) |
V4L/DVB (4432): Fix Circular dependencies
Signed-off-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.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c index 52b6fb2455f9..9f72b7000c08 100644 --- a/drivers/media/dvb/bt8xx/dst.c +++ b/drivers/media/dvb/bt8xx/dst.c | |||
@@ -1715,6 +1715,15 @@ static int dst_get_frontend(struct dvb_frontend *fe, struct dvb_frontend_paramet | |||
1715 | static void dst_release(struct dvb_frontend *fe) | 1715 | static 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 | if (state->dst_ca) { | ||
1719 | dvb_unregister_device(state->dst_ca); | ||
1720 | #ifdef CONFIG_DVB_CORE_ATTACH | ||
1721 | symbol_put(dst_ca_attach); | ||
1722 | #endif | ||
1723 | } | ||
1724 | #ifdef CONFIG_DVB_CORE_ATTACH | ||
1725 | symbol_put(dst_attach); | ||
1726 | #endif | ||
1718 | kfree(state); | 1727 | kfree(state); |
1719 | } | 1728 | } |
1720 | 1729 | ||
@@ -1752,11 +1761,6 @@ struct dst_state *dst_attach(struct dst_state *state, struct dvb_adapter *dvb_ad | |||
1752 | } | 1761 | } |
1753 | state->frontend.demodulator_priv = state; | 1762 | state->frontend.demodulator_priv = state; |
1754 | 1763 | ||
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 | |||
1760 | return state; /* Manu (DST is a card not a frontend) */ | 1764 | return state; /* Manu (DST is a card not a frontend) */ |
1761 | } | 1765 | } |
1762 | 1766 | ||