]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] af9035: print warning when firmware is bad
authorAntti Palosaari <crope@iki.fi>
Sun, 9 Dec 2012 19:25:08 +0000 (16:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:10:34 +0000 (09:10 -0200)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/af9035.c

index 68e0e80416aa456bd541f71fa982f96185ec8ac3..ea37b5c3c33fa4ee70845364e5324b93667f55c4 100644 (file)
@@ -437,6 +437,10 @@ static int af9035_download_firmware(struct dvb_usb_device *d,
                                __func__, fw->size - i);
        }
 
+       /* print warn if firmware is bad, continue and see what happens */
+       if (i)
+               dev_warn(&d->udev->dev, "%s: bad firmware\n", KBUILD_MODNAME);
+
        /* firmware loaded, request boot */
        req.cmd = CMD_FW_BOOT;
        ret = af9035_ctrl_msg(d, &req);