summaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-09 19:23:44 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:55:49 -0300
commit39624f7ee8eb90b61d79ab731da264959ac1879a (patch)
tree4e7f1b501b76df56e8da979fab4771f2f88b8b6f /drivers/media/dvb
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/dvb')
-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 89db3783587..1452e8228a6 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,
}
status = write_block(state, Address, BlockSize, pSrc);
- if (status < 0)
+ if (status < 0) {
+ printk(KERN_ERR "drxk: Error %d while loading firmware\n", status);
break;
+ }
pSrc += BlockSize;
offset += BlockSize;
}