From patchwork Fri Sep 11 12:40:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1362413 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=hkapcqez; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=gacuwuCK; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BnwNj17x9z9sTp for ; Fri, 11 Sep 2020 22:41:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HMstrZhmOJidYbiB2F/d3qHKKgbCgWXNuhXQ1/+n+bc=; b=hkapcqezHZj8vwb7H95AXmLpqh 0YtCHYoyH41MoYNEGJNPxRBe8vevKXn1InrNYF9u4C9MmWjW1EnhR0ceq9ztBtf4kSN82qHSvYoy5 ioQDaA55PY7LKOmyNcIbaUR2Y9gz6y/b1e2WQyve0X+EEVMAy6nLw9q2eujb7sMhXtEXW/3uJdArX mzRx1Zm4b/g29R5S/UTGGa+IfqOKkXNzO3xv4m19g2AWHsULuIuoIyUgg1TDIsU8qTU/POL5J2laV CNtBjLQRyGcbg4zy2WXlbOYNZ4nEgyaoEWS/f8YJ31k1iZhH5PFK6HtmixiPX0DPu3K5YYSdMHmPf /dblgMhA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGiMR-0003ev-01; Fri, 11 Sep 2020 12:41:03 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGiMM-0003dY-DB for linux-arm-kernel@lists.infradead.org; Fri, 11 Sep 2020 12:40:59 +0000 Received: by mail-qt1-x842.google.com with SMTP id p65so7696704qtd.2 for ; Fri, 11 Sep 2020 05:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v5RpXbFFL0WdTAnAFr8DBJoU20Prg5MRyiKH22f6AVw=; b=gacuwuCKC3v2698BpVtWnlfwgNDVB/36cNua337U00q+QUqGzqgiy0PStr1w40Xyk5 NohxSWtv2vqXx+4cfQPPfmTJgYPbEtDA2GMzeqPgH4qhYq65VnJsUuNjl0q9jEjkPVpX IthNyGcxP7N5nUwgsfYyS5+KoDVFNriOLwjRA1pEh5Jbobd/+ZATA2OAOUNmzwMHCreR AtdJyR9osr7T1dTVFoU57idZ8655SZxuJs8HckixzQ/oztm1NkpUU0CUXEefCxz/qUsf SQcxEFmuzWvJMG/DYh5MBv90/ylpPI55ifN0SLqCodOkro5MZdYyXCBQylfusRPkQn1I ufQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v5RpXbFFL0WdTAnAFr8DBJoU20Prg5MRyiKH22f6AVw=; b=bdSkBCdGOAaR0zj9qvuGPRu0x0bfags6MFTV/meBpvj8vEg9dmxYzZ/jniSj96JBQM P9C8SBUTG7JNeJXPdvMknkLuKgp8bP8r1vH4kJXjSSmIXbtxjHuoRHAaVX662E7dnvsx cC8KBA30Fp4I1ZvTRbnF5NiGsyYYCM+qfH7UdAy0EISxg7CeOu9/W7SSSWQdpquiv38z I2PP2O9LppZuatCXs7/zatV+qUIkBXM8jEsmweRjUyKESoPdsqgbUxR8IzRi3LpcEizY Y7qPg8mnvRklqza/CLhpu3FnQL6XCmiSGwOv+6Tfgk8apzKZ1HqvmhZeLanlZoFoPlHy 4zrg== X-Gm-Message-State: AOAM531Y2jPJPAijd2MiPzHkS+pGcbtyAlPSmSJ/N8TRYhScPrPeewVm YfHoMoijAxK45PDppKULVGrXrYeCf0E= X-Google-Smtp-Source: ABdhPJzG17IL3tQsXGJRwLeT6E14h4UktDNVTbTIiSeTKoibSuEoWk2Yip4yfbkWXVBxpWwxCuA7Xw== X-Received: by 2002:ac8:24d9:: with SMTP id t25mr1685581qtt.15.1599828056469; Fri, 11 Sep 2020 05:40:56 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:640:e918:537:c362:6060]) by smtp.gmail.com with ESMTPSA id c13sm2343931qtq.5.2020.09.11.05.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 05:40:55 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Subject: [PATCH 1/9] ARM: imx27: Remove imx27_soc_init() Date: Fri, 11 Sep 2020 09:40:26 -0300 Message-Id: <20200911124034.6792-2-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911124034.6792-1-festevam@gmail.com> References: <20200911124034.6792-1-festevam@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200911_084058_458877_B1EF0A2D X-CRM114-Status: GOOD ( 12.94 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:842 listed in] [list.dnswl.org] 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 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from 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 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam , arnd@arndb.de, linux-imx@nxp.com, kernel@pengutronix.de MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org imx27_soc_init() was only used by i.MX27 board files. Since the board files users are gone, it is safe to remove imx27_soc_init() too. Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/common.h | 1 - arch/arm/mach-imx/mm-imx27.c | 26 -------------------------- 2 files changed, 27 deletions(-) diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 72c3fcc32910..9c1c51c5f46f 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -31,7 +31,6 @@ void mx27_init_irq(void); void mx31_init_irq(void); void mx35_init_irq(void); void imx21_soc_init(void); -void imx27_soc_init(void); void imx31_soc_init(void); void imx35_soc_init(void); int mx21_clocks_init(unsigned long lref, unsigned long fref); diff --git a/arch/arm/mach-imx/mm-imx27.c b/arch/arm/mach-imx/mm-imx27.c index 2717614f101d..caf1da1754f6 100644 --- a/arch/arm/mach-imx/mm-imx27.c +++ b/arch/arm/mach-imx/mm-imx27.c @@ -60,29 +60,3 @@ void __init mx27_init_irq(void) { mxc_init_irq(MX27_IO_ADDRESS(MX27_AVIC_BASE_ADDR)); } - -static const struct resource imx27_audmux_res[] __initconst = { - DEFINE_RES_MEM(MX27_AUDMUX_BASE_ADDR, SZ_4K), -}; - -void __init imx27_soc_init(void) -{ - mxc_arch_reset_init(MX27_IO_ADDRESS(MX27_WDOG_BASE_ADDR)); - mxc_device_init(); - - /* i.mx27 has the i.mx21 type gpio */ - mxc_register_gpio("imx21-gpio", 0, MX27_GPIO1_BASE_ADDR, SZ_256, MX27_INT_GPIO, 0); - mxc_register_gpio("imx21-gpio", 1, MX27_GPIO2_BASE_ADDR, SZ_256, MX27_INT_GPIO, 0); - mxc_register_gpio("imx21-gpio", 2, MX27_GPIO3_BASE_ADDR, SZ_256, MX27_INT_GPIO, 0); - mxc_register_gpio("imx21-gpio", 3, MX27_GPIO4_BASE_ADDR, SZ_256, MX27_INT_GPIO, 0); - mxc_register_gpio("imx21-gpio", 4, MX27_GPIO5_BASE_ADDR, SZ_256, MX27_INT_GPIO, 0); - mxc_register_gpio("imx21-gpio", 5, MX27_GPIO6_BASE_ADDR, SZ_256, MX27_INT_GPIO, 0); - - pinctrl_provide_dummies(); - imx_add_imx_dma("imx27-dma", MX27_DMA_BASE_ADDR, MX27_INT_DMACH0); - /* imx27 has the imx21 type audmux */ - platform_device_register_simple("imx21-audmux", 0, imx27_audmux_res, - ARRAY_SIZE(imx27_audmux_res)); - - imx27_pm_init(); -}