summaryrefslogtreecommitdiff
path: root/drivers/qe/qe.c
diff options
context:
space:
mode:
authorZhao Qiang <B45475@freescale.com>2015-05-05 15:53:32 +0800
committerYork Sun <yorksun@freescale.com>2015-08-03 12:06:36 -0700
commite94a8fd36300b1df347f034e0cfa6704dad83b6d (patch)
treeef611211aecec37ab6f62a6230802e3638540bc9 /drivers/qe/qe.c
parent5b7252424684e424647ae67f92bd6ebdd2458923 (diff)
drivers/qe: transform parameter to compatible type
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>
Diffstat (limited to 'drivers/qe/qe.c')
-rw-r--r--drivers/qe/qe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c
index 84e1433d9e..f1df0a419c 100644
--- a/drivers/qe/qe.c
+++ b/drivers/qe/qe.c
@@ -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) |