Skip to content

Commit

Permalink
ARM: mach-mxs: Remove "TO" string from revision field
Browse files Browse the repository at this point in the history
There is no need to print the silicon revision as "TO1.2", just print it as
"1.2" instead:

$ cat /sys/bus/soc/devices/soc0/revision
1.2

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Fabio Estevam authored and Shawn Guo committed Aug 16, 2013
1 parent 56b7eec commit e115d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-mxs/mach-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ static const char __init *mxs_get_revision(void)
u32 rev = mxs_get_cpu_rev();

if (rev != MXS_CHIP_REV_UNKNOWN)
return kasprintf(GFP_KERNEL, "TO%d.%d", (rev >> 4) & 0xf,
return kasprintf(GFP_KERNEL, "%d.%d", (rev >> 4) & 0xf,
rev & 0xf);
else
return kasprintf(GFP_KERNEL, "%s", "Unknown");
Expand Down

0 comments on commit e115d63

Please sign in to comment.