Skip to content

Commit

Permalink
[media] drxk: Print an error if firmware is not loaded
Browse files Browse the repository at this point in the history
If something bad happens during firmware load, an error
should be printed at dmesg.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent bcd2ebb commit 39624f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 39624f7

Please sign in to comment.