From patchwork Tue Aug 13 13:28:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 266800 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C12E72C013A for ; Tue, 13 Aug 2013 23:29:09 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9Eea-0002Ss-Ax; Tue, 13 Aug 2013 13:28:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9EeW-0007Fj-FA; Tue, 13 Aug 2013 13:28:48 +0000 Received: from mail-yh0-x22d.google.com ([2607:f8b0:4002:c01::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V9EeN-0007Dt-NH for linux-arm-kernel@lists.infradead.org; Tue, 13 Aug 2013 13:28:40 +0000 Received: by mail-yh0-f45.google.com with SMTP id i72so2698409yha.18 for ; Tue, 13 Aug 2013 06:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=L2TC2n4vsGoGqAiPzbsc9IzC/lxuW3W/08oEQK2IC1Q=; b=RX+oLqq3ax4Z2v8vFsuQL1mivqK8pshqr7InjmdtqstqPJLqP8z122Rbazj9MPFHuC TiZl27tDLf0Qk0cJv+D1QOWKB4bvcMa1L+zPG2JmkiFb0J7zNm3tiv+eYWAecoCEsxy2 zPCeQGP/XDP8cH4/yxDlW+q6j96UkX0CnM5cGp1jJ2YSnjJgrYaboaPAPC78xjwlL4cq VGncjTPvdmHvXVwV4AcKE66qkUu29M281OrYjIv6SgweUWZnhTyPVEoQQtw9KwQZYViG 41RsVeeX/2PQvuQgiqnSVX2yH3i+nxO+iR+JKiS2lLqv6P7urR2SlBhcKKXOHZwPHuQ2 xkyw== X-Received: by 10.236.133.109 with SMTP id p73mr3576411yhi.32.1376400497887; Tue, 13 Aug 2013 06:28:17 -0700 (PDT) Received: from localhost.localdomain ([189.5.16.50]) by mx.google.com with ESMTPSA id n28sm13823449yhm.4.2013.08.13.06.28.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Aug 2013 06:28:16 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Subject: [PATCH] ARM: mach-mxs: Remove "TO" string from revision field Date: Tue, 13 Aug 2013 10:28:02 -0300 Message-Id: <1376400482-23442-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130813_092839_849385_C8666B50 X-CRM114-Status: GOOD ( 10.45 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Fabio Estevam 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 --- arch/arm/mach-mxs/mach-mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c index 2d7ad51..98f6e2a 100644 --- a/arch/arm/mach-mxs/mach-mxs.c +++ b/arch/arm/mach-mxs/mach-mxs.c @@ -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");