From patchwork Fri Jun 24 10:50:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102090 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp880318qgy; Fri, 24 Jun 2016 03:49:30 -0700 (PDT) X-Received: by 10.98.93.65 with SMTP id r62mr6011550pfb.114.1466765370155; Fri, 24 Jun 2016 03:49:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si6229668pfg.118.2016.06.24.03.49.29; Fri, 24 Jun 2016 03:49:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751465AbcFXKt1 (ORCPT + 30 others); Fri, 24 Jun 2016 06:49:27 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:50848 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbcFXKsv (ORCPT ); Fri, 24 Jun 2016 06:48:51 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0Lecww-1bicOQ2Am6-00qRGC; Fri, 24 Jun 2016 12:48:12 +0200 From: Arnd Bergmann To: Shawn Guo Cc: linux-arm-kernel@lists.infradead.org, Sascha Hauer , Fabio Estevam , linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 5/6] ARM: imx: remove last call to cpu_is_mx5* Date: Fri, 24 Jun 2016 12:50:00 +0200 Message-Id: <20160624105001.3166287-6-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160624105001.3166287-1-arnd@arndb.de> References: <20160624105001.3166287-1-arnd@arndb.de> X-Provags-ID: V03:K0:E39brtvrp/kEcJ5JxcKmvKxkXS6e9DlWoBNtVTYJOdDpX6sB8rS Ak+TlAbZPDS5KxfhacG8lScBIL5xw7CTUsBa7RiGq/enX7BTbacLNkI7De8IIw/tSWeaoOV WhfQaHUz71SULej+Gm0EpBoBLaoQBHaqGwqCuJUN9xtiE+DHhEHN2EcV9HLr5ymZ8p9BxAQ W4ax4F5vbjKhqtyAy2Fyw== X-UI-Out-Filterresults: notjunk:1; V01:K0:8cLHWv9G2v8=:HseDjSQzmODtjip/1Us3y2 umA2KJWUHLqWcWIZGqymlhpMXxdP2tutOi5fXMPlMGSB5sMkEGKXrvBJsygEZXggTNjIY7APg DDKEF4W2yl2/Jz8Adake4n4xVL6MBVL/20Z4Bdf09T8p7gA2hI+0K55Sb2F7Cht4dk/bMBjv4 QY9rZKrImDXjsIbW4XeMlLWFVQFi71o0wMbb/aui+ng9FmqIemT9LRWVUzBg0y/kZNVF3FioB +sr590o8vwiHg20BHzJCjUUAjVhHGIG9DlB3e3sq6pBsstCFf6AaIvysKIrhs36em2dgJ6Uz8 YSqEkxe5I4xtUKCcCFGSsjwW50bLTKxXBWb0zd8lRPUiO4aRi8/tJYzoIYwUbn2VF52e50Ub8 jK1dFdd/Ohm9pctwt6nyniy6OivHcN8AXgAYKvh9pAhM0qJYdM8qC+FRIrQeiL0hfSsBrB2MF hloMumR87BsJ1c3XA+MchoWnSU6w1UJE3OuaVNpGYCBorvK6bg9ixX3X5ISkVIPAVZZkIbD+Y NZ8lyf2ue87oYSPiIJFryIm/10pN0LVDwivxkj1mmCFhO0jYVNSr8Z9XbaA4tpRAsnIgev8Hb cpE2OQ42fmtawqEb0hHY3lMqV3ZKxZMgR3GgFrakM0PYiZTR/O6XWVKowcr99ar3LR0Raa0S2 poITUa3kLiZ2WYodsOUeO0LDBwOGZULA9V/PiB20upVgKlo3paw0UKFhllUzJOtI2xm0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The check for cpu_is_mx51/cpu_is_mx53() in mx51_revision()/mx53_revision() is just a safety precaution, but there are only two callers of this are using it only on the correct CPUs, and none of the other respective functions have this extra check. Removing these lets us kill off the cpu_is_* functions. Signed-off-by: Arnd Bergmann --- arch/arm/mach-imx/cpu-imx5.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.9.0 diff --git a/arch/arm/mach-imx/cpu-imx5.c b/arch/arm/mach-imx/cpu-imx5.c index 3403bac94a31..4f2d1c772f85 100644 --- a/arch/arm/mach-imx/cpu-imx5.c +++ b/arch/arm/mach-imx/cpu-imx5.c @@ -60,13 +60,9 @@ static int get_mx51_srev(void) /* * Returns: * the silicon revision of the cpu - * -EINVAL - not a mx51 */ int mx51_revision(void) { - if (!cpu_is_mx51()) - return -EINVAL; - if (mx5_cpu_rev == -1) mx5_cpu_rev = get_mx51_srev(); @@ -112,13 +108,9 @@ static int get_mx53_srev(void) /* * Returns: * the silicon revision of the cpu - * -EINVAL - not a mx53 */ int mx53_revision(void) { - if (!cpu_is_mx53()) - return -EINVAL; - if (mx5_cpu_rev == -1) mx5_cpu_rev = get_mx53_srev();