Skip to contentSkip to conversation

ARM: mach-mxs: Remove "TO" string from revision field

PATCH New Fabio Estevam 2 participants 2 messages Aug 13, 2013 – Aug 14, 2013

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: mach-mxs: Remove "TO" string from revision field

From: Fabio Estevam <[email protected]>

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
---
 arch/arm/mach-mxs/mach-mxs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mxs/mach-mxs.c +1 -1
index 2d7ad51..98f6e2a 100644
@@ -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");
Signature · 1 line
1.8.1.2
Applied
#1 lore raw

PATCH 1/1 ARM: mach-mxs: Remove "TO" string from revision field

Quoted 9 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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

Applied, thanks.