From: Antti Palosaari Date: Sun, 9 Dec 2012 19:25:08 +0000 (-0300) Subject: [media] af9035: print warning when firmware is bad X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ff4e3fe86f6c5e8c746f07e232a89330cd3cf1a9;p=openwrt%2Fstaging%2Fblogic.git [media] af9035: print warning when firmware is bad Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 68e0e80416aa..ea37b5c3c33f 100644 --- a/drivers/media/usb/dvb-usb-v2/af9035.c +++ b/drivers/media/usb/dvb-usb-v2/af9035.c @@ -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);