aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88/cx88-blackbird.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx88/cx88-blackbird.c')
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 61c4f72644b8..6c0c94c5ef91 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -546,10 +546,12 @@ static int blackbird_initialize_codec(struct cx8802_dev *dev)
546 if (retval < 0) 546 if (retval < 0)
547 return retval; 547 return retval;
548 548
549 dev->mailbox = blackbird_find_mailbox(dev); 549 retval = blackbird_find_mailbox(dev);
550 if (dev->mailbox < 0) 550 if (retval < 0)
551 return -1; 551 return -1;
552 552
553 dev->mailbox = retval;
554
553 retval = blackbird_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0); /* ping */ 555 retval = blackbird_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0); /* ping */
554 if (retval < 0) { 556 if (retval < 0) {
555 dprintk(0, "ERROR: Firmware ping failed!\n"); 557 dprintk(0, "ERROR: Firmware ping failed!\n");