[media] xc5000: log firmware upload failures in xc5000_fwupload
authorMichael Krufky <mkrufky@kernellabs.com>
Mon, 16 Apr 2012 18:06:45 +0000 (15:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 19 Apr 2012 12:43:53 +0000 (09:43 -0300)
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c

index eab2ea4..377fb8d 100644 (file)
@@ -631,7 +631,10 @@ static int xc5000_fwupload(struct dvb_frontend *fe)
                ret = xc_load_i2c_sequence(fe,  fw->data);
                if (XC_RESULT_SUCCESS == ret)
                        ret = xc_set_xtal(fe);
-               printk(KERN_INFO "xc5000: firmware upload complete...\n");
+               if (XC_RESULT_SUCCESS == ret)
+                       printk(KERN_INFO "xc5000: firmware upload complete...\n");
+               else
+                       printk(KERN_ERR "xc5000: firmware upload failed...\n");
        }
 
 out: