aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-04-20 01:50:45 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-26 14:28:31 -0400
commit2e71064f2f9009c6ef672abc4f9160d16a3d50bd (patch)
tree7134cffa3dc89ac83c50c8024239d96c34d5a963 /drivers
parentb72d66770953c2177d70a7a5d24521a447d2b443 (diff)
[media] saa7164: saa7164_vbi_stop_port() returns linux error codes
The saa7164_vbi_stop_port() changes the SAA_ERR_ALREADY_STOPPED result code to -EIO before returning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/saa7164/saa7164-vbi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/saa7164/saa7164-vbi.c b/drivers/media/video/saa7164/saa7164-vbi.c
index 273cf807401c..d8e6c8f14079 100644
--- a/drivers/media/video/saa7164/saa7164-vbi.c
+++ b/drivers/media/video/saa7164/saa7164-vbi.c
@@ -952,7 +952,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
952 952
953 /* Stop the hardware, regardless */ 953 /* Stop the hardware, regardless */
954 result = saa7164_vbi_stop_port(port); 954 result = saa7164_vbi_stop_port(port);
955 if ((result != SAA_OK) && (result != SAA_ERR_ALREADY_STOPPED)) { 955 if (result != SAA_OK) {
956 printk(KERN_ERR "%s() pause/forced stop transition " 956 printk(KERN_ERR "%s() pause/forced stop transition "
957 "failed, res = 0x%x\n", __func__, result); 957 "failed, res = 0x%x\n", __func__, result);
958 } 958 }
@@ -971,7 +971,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
971 /* Stop the hardware, regardless */ 971 /* Stop the hardware, regardless */
972 result = saa7164_vbi_acquire_port(port); 972 result = saa7164_vbi_acquire_port(port);
973 result = saa7164_vbi_stop_port(port); 973 result = saa7164_vbi_stop_port(port);
974 if ((result != SAA_OK) && (result != SAA_ERR_ALREADY_STOPPED)) { 974 if (result != SAA_OK) {
975 printk(KERN_ERR "%s() run/forced stop transition " 975 printk(KERN_ERR "%s() run/forced stop transition "
976 "failed, res = 0x%x\n", __func__, result); 976 "failed, res = 0x%x\n", __func__, result);
977 } 977 }