]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/qe: transform parameter to compatible type
authorZhao Qiang <B45475@freescale.com>
Tue, 5 May 2015 07:53:32 +0000 (15:53 +0800)
committerYork Sun <yorksun@freescale.com>
Mon, 3 Aug 2015 19:06:36 +0000 (12:06 -0700)
when using printf, the parameter type need to be compatible
type, so transform them to compatible type

Signed-off-by: Zhao Qiang <B45475@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/qe/qe.c

index 84e1433d9ee746e847fd11d2c283652364952f5b..f1df0a419ca206f4b0e626669214b813692da758 100644 (file)
@@ -313,9 +313,10 @@ static void qe_upload_microcode(const void *base,
 
        if (ucode->major || ucode->minor || ucode->revision)
                printf("QE: uploading microcode '%s' version %u.%u.%u\n",
-                       ucode->id, ucode->major, ucode->minor, ucode->revision);
+                      (char *)ucode->id, (u16)ucode->major, (u16)ucode->minor,
+                      (u16)ucode->revision);
        else
-               printf("QE: uploading microcode '%s'\n", ucode->id);
+               printf("QE: uploading microcode '%s'\n", (char *)ucode->id);
 
        /* Use auto-increment */
        out_be32(&qe_immr->iram.iadd, be32_to_cpu(ucode->iram_offset) |