aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-09 18:23:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:55:49 -0400
commit39624f7ee8eb90b61d79ab731da264959ac1879a (patch)
tree4e7f1b501b76df56e8da979fab4771f2f88b8b6f /drivers/media
parentbcd2ebb76039bf4b1d1cb9f9f0e182548578e692 (diff)
[media] drxk: Print an error if firmware is not loaded
If something bad happens during firmware load, an error should be printed at dmesg. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
index 89db37835872..1452e8228a6f 100644
--- a/drivers/media/dvb/frontends/drxk_hard.c
+++ b/drivers/media/dvb/frontends/drxk_hard.c
@@ -1395,8 +1395,10 @@ static int DownloadMicrocode(struct drxk_state *state,
1395 } 1395 }
1396 1396
1397 status = write_block(state, Address, BlockSize, pSrc); 1397 status = write_block(state, Address, BlockSize, pSrc);
1398 if (status < 0) 1398 if (status < 0) {
1399 printk(KERN_ERR "drxk: Error %d while loading firmware\n", status);
1399 break; 1400 break;
1401 }
1400 pSrc += BlockSize; 1402 pSrc += BlockSize;
1401 offset += BlockSize; 1403 offset += BlockSize;
1402 } 1404 }