aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c6
-rw-r--r--drivers/media/video/ivtv/ivtv-fileops.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index 47b5649729df..ed020f722b05 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -1049,7 +1049,7 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
1049 IVTV_ENCODER_SIZE); 1049 IVTV_ENCODER_SIZE);
1050 if (!itv->enc_mem) { 1050 if (!itv->enc_mem) {
1051 IVTV_ERR("ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h\n"); 1051 IVTV_ERR("ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h\n");
1052 IVTV_ERR("or disabling CONFIG_HIMEM4G into the kernel would help\n"); 1052 IVTV_ERR("or disabling CONFIG_HIGHMEM4G into the kernel would help\n");
1053 retval = -ENOMEM; 1053 retval = -ENOMEM;
1054 goto free_mem; 1054 goto free_mem;
1055 } 1055 }
@@ -1061,7 +1061,7 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
1061 IVTV_DECODER_SIZE); 1061 IVTV_DECODER_SIZE);
1062 if (!itv->dec_mem) { 1062 if (!itv->dec_mem) {
1063 IVTV_ERR("ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h\n"); 1063 IVTV_ERR("ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h\n");
1064 IVTV_ERR("or disabling CONFIG_HIMEM4G into the kernel would help\n"); 1064 IVTV_ERR("or disabling CONFIG_HIGHMEM4G into the kernel would help\n");
1065 retval = -ENOMEM; 1065 retval = -ENOMEM;
1066 goto free_mem; 1066 goto free_mem;
1067 } 1067 }
@@ -1077,7 +1077,7 @@ static int __devinit ivtv_probe(struct pci_dev *dev,
1077 ioremap_nocache(itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE); 1077 ioremap_nocache(itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE);
1078 if (!itv->reg_mem) { 1078 if (!itv->reg_mem) {
1079 IVTV_ERR("ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h\n"); 1079 IVTV_ERR("ioremap failed, perhaps increasing __VMALLOC_RESERVE in page.h\n");
1080 IVTV_ERR("or disabling CONFIG_HIMEM4G into the kernel would help\n"); 1080 IVTV_ERR("or disabling CONFIG_HIGHMEM4G into the kernel would help\n");
1081 retval = -ENOMEM; 1081 retval = -ENOMEM;
1082 goto free_io; 1082 goto free_io;
1083 } 1083 }
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c
index a7640c49f1d8..2b74b0ab1477 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -755,8 +755,10 @@ unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait)
755 IVTV_DEBUG_HI_FILE("Encoder poll\n"); 755 IVTV_DEBUG_HI_FILE("Encoder poll\n");
756 poll_wait(filp, &s->waitq, wait); 756 poll_wait(filp, &s->waitq, wait);
757 757
758 if (eof || s->q_full.length || s->q_io.length) 758 if (s->q_full.length || s->q_io.length)
759 return POLLIN | POLLRDNORM; 759 return POLLIN | POLLRDNORM;
760 if (eof)
761 return POLLHUP;
760 return 0; 762 return 0;
761} 763}
762 764