From patchwork Fri Nov 30 08:41:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10705961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 65AAC14BD for ; Fri, 30 Nov 2018 08:41:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 566CF2E694 for ; Fri, 30 Nov 2018 08:41:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A4C52F6B3; Fri, 30 Nov 2018 08:41:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E54632E694 for ; Fri, 30 Nov 2018 08:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=xJSLi/4y0hvku41GzLIoyQx2Hx21Jeja46jED7PtHpY=; b=dgX/H2PYpopd3O IM+q00wSiRSu4y6DYNheN9uPX6FUxSOsoEx1d49YWgamJc5GLtlSDVeX687p3BOfuif4QuUa7iJBF IJGG1lWYAhB0HU+EHbI4/noLmMPIrtnqhD/o0YNP4URFSuSGxXX2w4udAjut3FIWpmlRvYwZrGRG7 PskeOAeD9Faoi5pCzVsw6DxAQHhoyUJqam062MDOxU/W0T0H8iGh/rH7jTOqaSiRB/aNf0YU+/Hrl 55SxZjyGGgApHFb95mbuFIsrVzlVOskF0tdxub/lzrH9EiGrQANW21MeG8Ji9VgDQaeSk1X1XKpNp jDSxt6Ir7yhMx3SrSZqA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSeMP-0003CH-CC; Fri, 30 Nov 2018 08:41:17 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSeMM-0003BU-KV for linux-arm-kernel@lists.infradead.org; Fri, 30 Nov 2018 08:41:16 +0000 Received: from mail.kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC57420863; Fri, 30 Nov 2018 08:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543567264; bh=lBfAH6Fdv6pt5aSgWvZeYjgK4PN/vTj7oibEqhT6GZA=; h=From:To:Cc:Subject:Date:From; b=Qy8y2iedhZeqsToWz+uC5mWVklUSj0QMZgnc7+Ztljrt9yyRuT4tR/URd5NUr28Sr f5I04e0ZD5g0c0dNz4YOhFhUj9tc8MU7DmRmugYjqOJXPTXo7Sh1dA8HyMp9Sf+KQQ 5HrfUe4oYeMlPsWHOFF98oSYCBtwmT7FmPjPVckY= From: Stephen Boyd To: Michael Turquette , Stephen Boyd Subject: [PATCH 1/2] clk: mediatek: Drop __init from mtk_clk_register_cpumuxes() Date: Fri, 30 Nov 2018 00:41:02 -0800 Message-Id: <20181130084103.64722-1-sboyd@kernel.org> X-Mailer: git-send-email 2.20.0.rc1.387.gf8505762e3-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181130_004114_699079_312BDAF2 X-CRM114-Status: GOOD ( 10.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Ryder Lee , Weiyi Lu , Wenzhen Yu , Sean Wang , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This function is used from more places than just __init code. Removing __init silences a section mismatch warning here. Cc: Sean Wang Cc: Ryder Lee Cc: Rob Herring Cc: Wenzhen Yu Cc: Weiyi Lu Signed-off-by: Stephen Boyd --- drivers/clk/mediatek/clk-cpumux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c index 16e56772d280..6c7eaa21e662 100644 --- a/drivers/clk/mediatek/clk-cpumux.c +++ b/drivers/clk/mediatek/clk-cpumux.c @@ -53,7 +53,7 @@ static const struct clk_ops clk_cpumux_ops = { .set_parent = clk_cpumux_set_parent, }; -static struct clk __init * +static struct clk * mtk_clk_register_cpumux(const struct mtk_composite *mux, struct regmap *regmap) { @@ -84,9 +84,9 @@ mtk_clk_register_cpumux(const struct mtk_composite *mux, return clk; } -int __init mtk_clk_register_cpumuxes(struct device_node *node, - const struct mtk_composite *clks, int num, - struct clk_onecell_data *clk_data) +int mtk_clk_register_cpumuxes(struct device_node *node, + const struct mtk_composite *clks, int num, + struct clk_onecell_data *clk_data) { int i; struct clk *clk; From patchwork Fri Nov 30 08:41:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10705963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4311813A4 for ; Fri, 30 Nov 2018 08:41:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 324D82E694 for ; Fri, 30 Nov 2018 08:41:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25B4E2F6B3; Fri, 30 Nov 2018 08:41:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C7CD82E694 for ; Fri, 30 Nov 2018 08:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=8RA7oKhgQL4WwBZKXCdd9Ko+YPHHSQBbqXeRQhtTtdE=; b=SRkVAlUiG4PZ85 v2utipjHcxJAWLZojaWmbcE342a0HacwIN63igJcSTO4J/JrNiprZVQrzde5WEO4tyCi3a/PnFFNL XTfi4Bq5ker2lxoEbhEFqez+/vqSudtS7CaFByfwsOkMeMT8DoxQSP1rIbF8wIIXXaxMpGwcVaThA +q8lpmzDdFAXxncppJKFXfkveQs6rUdtP4Fm71r9BPGZXoiC2Su+/s0WvRcO1GMsTNGGpyvUWUWpB KOqhZiZ3AFqSB+Bohusz01zV0Fb/kEpXTVWHaT1lnOlIPL8awwNIiQAFokDKHZAq0qf1oGtXdTk9F ZJ6r9hcFSmdosiIUvkmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSeMd-0003O1-DJ; Fri, 30 Nov 2018 08:41:31 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSeMM-0003BV-KX for linux-arm-kernel@lists.infradead.org; Fri, 30 Nov 2018 08:41:16 +0000 Received: from mail.kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6ADC321473; Fri, 30 Nov 2018 08:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543567264; bh=tEX3EIp9v0zv12Hz6PhdBRbJ//jFE2EqCELQvbFhDpA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jZKU5b3Xp68rcrCLh008e6TYIWtQDKOU2s3QCQZApw5+VvQHdNxaPK8e/rhRZls33 5nWsHEdvhjV6HaktcJVaEg2tm7as2jCDmXPo7RuicEVyTZgZX3udljelPp78Hvg445 MxIKNTfPpULQUZgollMWms+p5rxZ4zYjc/21ZGLo= From: Stephen Boyd To: Michael Turquette , Stephen Boyd Subject: [PATCH 2/2] clk: mediatek: Drop more __init markings for driver probe Date: Fri, 30 Nov 2018 00:41:03 -0800 Message-Id: <20181130084103.64722-2-sboyd@kernel.org> X-Mailer: git-send-email 2.20.0.rc1.387.gf8505762e3-goog In-Reply-To: <20181130084103.64722-1-sboyd@kernel.org> References: <20181130084103.64722-1-sboyd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181130_004114_743038_688C242E X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Ryder Lee , Weiyi Lu , Wenzhen Yu , Sean Wang , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This function is called from driver probe, which isn't the same as __init code because driver probe can happen later. Drop the __init marking here to fix this potential problem. Cc: Sean Wang Cc: Ryder Lee Cc: Rob Herring Cc: Wenzhen Yu Cc: Weiyi Lu Fixes: 2fc0a509e4ee ("clk: mediatek: add clock support for MT7622 SoC") Signed-off-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt7622.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index 92f7e32770c6..a8aecef1ba89 100644 --- a/drivers/clk/mediatek/clk-mt7622.c +++ b/drivers/clk/mediatek/clk-mt7622.c @@ -513,7 +513,7 @@ static const struct mtk_gate peri_clks[] = { GATE_PERI1(CLK_PERI_IRTX_PD, "peri_irtx_pd", "irtx_sel", 2), }; -static struct mtk_composite infra_muxes[] __initdata = { +static struct mtk_composite infra_muxes[] = { MUX(CLK_INFRA_MUX1_SEL, "infra_mux1_sel", infra_mux1_parents, 0x000, 2, 2), }; @@ -652,7 +652,7 @@ static int mtk_topckgen_init(struct platform_device *pdev) return of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); } -static int __init mtk_infrasys_init(struct platform_device *pdev) +static int mtk_infrasys_init(struct platform_device *pdev) { struct device_node *node = pdev->dev.of_node; struct clk_onecell_data *clk_data;