summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk_hard.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2011-07-10 00:23:44 +0200
committerMauro Carvalho Chehab2011-07-27 22:55:49 +0200
commit39624f7ee8eb90b61d79ab731da264959ac1879a (patch)
tree4e7f1b501b76df56e8da979fab4771f2f88b8b6f /drivers/media/dvb/frontends/drxk_hard.c
parent[media] drxk: Avoid OOPSes if firmware is corrupted (diff)
downloadkernel-qcow2-linux-39624f7ee8eb90b61d79ab731da264959ac1879a.tar.gz
kernel-qcow2-linux-39624f7ee8eb90b61d79ab731da264959ac1879a.tar.xz
kernel-qcow2-linux-39624f7ee8eb90b61d79ab731da264959ac1879a.zip
[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/frontends/drxk_hard.c')
-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,
}
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;
}