ARM: mach-mxs: Remove "TO" string from revision field
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 13 Aug 2013 13:28:02 +0000 (10:28 -0300)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 16 Aug 2013 07:46:11 +0000 (15:46 +0800)
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>
arch/arm/mach-mxs/mach-mxs.c

index b5a2c4a68e346d7487eef1bbefa56e568f1a0e17..958ef483bf33413fa0fcda6c4e748a840a7e80dc 100644 (file)
@@ -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");
This page took 0.036554 seconds and 5 git commands to generate.