Commit 2e71064f authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b72d6677
...@@ -952,7 +952,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port) ...@@ -952,7 +952,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
/* Stop the hardware, regardless */ /* Stop the hardware, regardless */
result = saa7164_vbi_stop_port(port); result = saa7164_vbi_stop_port(port);
if ((result != SAA_OK) && (result != SAA_ERR_ALREADY_STOPPED)) { if (result != SAA_OK) {
printk(KERN_ERR "%s() pause/forced stop transition " printk(KERN_ERR "%s() pause/forced stop transition "
"failed, res = 0x%x\n", __func__, result); "failed, res = 0x%x\n", __func__, result);
} }
...@@ -971,7 +971,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port) ...@@ -971,7 +971,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
/* Stop the hardware, regardless */ /* Stop the hardware, regardless */
result = saa7164_vbi_acquire_port(port); result = saa7164_vbi_acquire_port(port);
result = saa7164_vbi_stop_port(port); result = saa7164_vbi_stop_port(port);
if ((result != SAA_OK) && (result != SAA_ERR_ALREADY_STOPPED)) { if (result != SAA_OK) {
printk(KERN_ERR "%s() run/forced stop transition " printk(KERN_ERR "%s() run/forced stop transition "
"failed, res = 0x%x\n", __func__, result); "failed, res = 0x%x\n", __func__, result);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment