summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/dvb/vp7041/vp7041.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/vp7041/vp7041.c b/linux/drivers/media/dvb/vp7041/vp7041.c
index f5d93be73..a570adef2 100644
--- a/linux/drivers/media/dvb/vp7041/vp7041.c
+++ b/linux/drivers/media/dvb/vp7041/vp7041.c
@@ -876,11 +876,14 @@ static int vp7041_loadfirmware(struct usb_device *udev)
{
const struct firmware *fw = NULL;
int ret = 0, i;
- for (i = 0; i < sizeof(firmware_filenames)/sizeof(char*); i++)
- if (request_firmware(&fw, firmware_filenames[i], &udev->dev) == 0) {
+ for (i = 0; i < sizeof(firmware_filenames)/sizeof(char*); i++) {
+ if ((ret = request_firmware(&fw, firmware_filenames[i], &udev->dev)) == 0) {
info("found firmware file (%s).",firmware_filenames[i]);
break;
}
+ dprintk("Firmware '%s' not found. (%d)\n",firmware_filenames[i],ret);
+ }
+
if (fw == NULL) {
err("Did not find a valid firmware.");