summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_hw.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_hw.c b/linux/drivers/media/dvb/ttpci/av7110_hw.c
index f80b8f633..213721e28 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_hw.c
+++ b/linux/drivers/media/dvb/ttpci/av7110_hw.c
@@ -55,7 +55,7 @@ int av7110_debiwrite(struct av7110 *av7110, u32 config,
if (count <= 0 || count > 32764)
return -1;
- if (saa7146_wait_for_debi_done(av7110->dev, 1) < 0)
+ if (saa7146_wait_for_debi_done(av7110->dev, 0) < 0)
return -1;
saa7146_write(dev, DEBI_CONFIG, config);
if (count <= 4) /* immediate transfer */
@@ -74,7 +74,7 @@ u32 av7110_debiread(struct av7110 *av7110, u32 config, int addr, int count)
if (count > 32764 || count <= 0)
return 0;
- if (saa7146_wait_for_debi_done(av7110->dev, 1) < 0)
+ if (saa7146_wait_for_debi_done(av7110->dev, 0) < 0)
return 0;
saa7146_write(dev, DEBI_AD, av7110->debi_bus);
saa7146_write(dev, DEBI_COMMAND, (count << 17) | 0x10000 | (addr & 0xffff));