From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A97D4C77B7F for ; Tue, 16 May 2023 15:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UJ4huO0pxiQ1yOfiDUaCw4lYUASbpG4ItklFZ3ZR1bI=; b=jUnPgLt/y3WuNY kTmh4j7wQv/Pm95zqG1X4rCZ94QunpRriOy0UUC626uipchlw6GOa55BZN7FlRIF41GRwYdMLIzxM pRWMKgOw/DK6gRFrip48DINf84PFTGdrrpxytHVES4/EObGx/j3twwlZIDHPQmX++TAs9wfvgLL1R 89hrxa9yBoKgWNE3OMMj9X7v+T/N+KE6DD13hfk12lmDqBNnbKk5mCEjQIYtc5WcbrfTlA/AzVK9Q +4/bnnuUO//qXcRyO+EW+SiCK/nhlQ0EDWB+YwAaEzm11TqIfgIqHlnNQJph2V12qPuL2hXrihEUg lU3IaouaIIL+U8zupFEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pywel-006G1y-1k; Tue, 16 May 2023 15:32:07 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pywej-006G13-1y for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 15:32:07 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2A25F63B5B; Tue, 16 May 2023 15:32:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C4E1C433EF; Tue, 16 May 2023 15:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684251124; bh=dGtx50T5is7qnVEdQTiLOc5141/dVGpeqDfz3k59KAw=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=TQuu3nUvQAba0rT7rxE8hy/wOhHfYyKB27Jn2i6pr7EzDud+kwVMFWXuJrnXLbVgC bdGeo/3tyLHKBqpYuZUwAFXvnKHBI0QiRpJglxXDMZCVrScgnLt5YTQewDQK12dddt dVyDI5+U+30YS/0p9GE40rOFX6WLE5H4K7tzdKycVou7KVmvNn3nC2cz2N+yJbwAig m4IhSVGuMDqkU8Mwee18/7qij03qT2CEljXKwSjrtvSCqrOz/sB3rZeNxJbYYVhW2B Iu0zG9Qcu7r6bk3bTPGUjuVIpGQthfIfO50PISjc6/bK8aF5N5ffX7ijhJnFAEWIfJ 0DcsBjRXNhKCQ== From: Arnd Bergmann To: soc@kernel.org Cc: Arnd Bergmann , Russell King , Bartosz Golaszewski , Hartley Sweeten , Alexander Sverdlin , Andre Przywara , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Vladimir Zapolskiy , Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Viresh Kumar , Shiraz Hashim , Sudeep Holla , Lorenzo Pieralisi , Linus Walleij , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Alan Stern , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 05/13] ARM: imx: remove unused mx25_revision() Date: Tue, 16 May 2023 17:31:01 +0200 Message-Id: <20230516153109.514251-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516153109.514251-1-arnd@kernel.org> References: <20230516153109.514251-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_083205_732906_33B5FD86 X-CRM114-Status: GOOD ( 16.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann This function has no prototype and no callers: arm/mach-imx/cpu-imx25.c:43:5: error: no previous prototype for 'mx25_revision' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/cpu-imx25.c | 50 ----------------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 arch/arm/mach-imx/cpu-imx25.c diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 5c650bf40e02..35a99888f54a 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 obj-y := cpu.o system.o irq-common.o -obj-$(CONFIG_SOC_IMX25) += cpu-imx25.o mach-imx25.o pm-imx25.o +obj-$(CONFIG_SOC_IMX25) += mach-imx25.o pm-imx25.o obj-$(CONFIG_SOC_IMX27) += cpu-imx27.o pm-imx27.o mach-imx27.o diff --git a/arch/arm/mach-imx/cpu-imx25.c b/arch/arm/mach-imx/cpu-imx25.c deleted file mode 100644 index cc86977d0a34..000000000000 --- a/arch/arm/mach-imx/cpu-imx25.c +++ /dev/null @@ -1,50 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * MX25 CPU type detection - * - * Copyright (c) 2009 Daniel Mack - * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved - */ -#include -#include -#include -#include - -#include "iim.h" -#include "hardware.h" - -static int mx25_cpu_rev = -1; - -static int mx25_read_cpu_rev(void) -{ - u32 rev; - void __iomem *iim_base; - struct device_node *np; - - np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim"); - iim_base = of_iomap(np, 0); - of_node_put(np); - BUG_ON(!iim_base); - rev = readl(iim_base + MXC_IIMSREV); - iounmap(iim_base); - - switch (rev) { - case 0x00: - return IMX_CHIP_REVISION_1_0; - case 0x01: - return IMX_CHIP_REVISION_1_1; - case 0x02: - return IMX_CHIP_REVISION_1_2; - default: - return IMX_CHIP_REVISION_UNKNOWN; - } -} - -int mx25_revision(void) -{ - if (mx25_cpu_rev == -1) - mx25_cpu_rev = mx25_read_cpu_rev(); - - return mx25_cpu_rev; -} -EXPORT_SYMBOL(mx25_revision); -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel