summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2006-06-21 17:27:20 +0400
committerManu Abraham <manu@linuxtv.org>2006-06-21 17:27:20 +0400
commit0f0b888ccaae68c831522377241a955a40bb6c21 (patch)
treec5c880a57e0b3b32dce9986209af986a2bc87b97 /linux
parentc9db824090ce27869e036130fc4cd25e2ede7bce (diff)
downloadmediapointer-dvb-s2-0f0b888ccaae68c831522377241a955a40bb6c21.tar.gz
mediapointer-dvb-s2-0f0b888ccaae68c831522377241a955a40bb6c21.tar.bz2
Make ASIC RESET Conditional
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/bt8xx/dst.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst.c b/linux/drivers/media/dvb/bt8xx/dst.c
index 0e3540655..234666772 100644
--- a/linux/drivers/media/dvb/bt8xx/dst.c
+++ b/linux/drivers/media/dvb/bt8xx/dst.c
@@ -926,15 +926,15 @@ static int dst_get_device_id(struct dst_state *state)
static int dst_probe(struct dst_state *state)
{
mutex_init(&state->dst_mutex);
- if ((rdc_8820_reset(state)) < 0) {
- dprintk(verbose, DST_ERROR, 1, "RDC 8820 RESET Failed.");
- return -1;
- }
- if (dst_addons & DST_TYPE_HAS_CA)
+ if (dst_addons & DST_TYPE_HAS_CA) {
+ if ((rdc_8820_reset(state)) < 0) {
+ dprintk(verbose, DST_ERROR, 1, "RDC 8820 RESET Failed.");
+ return -1;
+ }
msleep(4000);
- else
+ } else {
msleep(100);
-
+ }
if ((dst_comm_init(state)) < 0) {
dprintk(verbose, DST_ERROR, 1, "DST Initialization Failed.");
return -1;