From patchwork Wed Jun 21 21:58:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9803081 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 01DE7600C5 for ; Wed, 21 Jun 2017 21:59:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8E7D2846B for ; Wed, 21 Jun 2017 21:59:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD2462853C; Wed, 21 Jun 2017 21:59: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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91B822846B for ; Wed, 21 Jun 2017 21:59:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbdFUV7Y (ORCPT ); Wed, 21 Jun 2017 17:59:24 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:50818 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751667AbdFUV7X (ORCPT ); Wed, 21 Jun 2017 17:59:23 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MHYCK-1dMgeO2OiK-003Pq4; Wed, 21 Jun 2017 23:58:52 +0200 From: Arnd Bergmann To: Michael Turquette , Stephen Boyd Cc: Arnd Bergmann , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: bcm: don't mark iproc_pll_clk_setup as __init Date: Wed, 21 Jun 2017 23:58:38 +0200 Message-Id: <20170621215851.4052618-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:uDc2m5X8lPoU21e5mR97LPPrA3y7sJTnOzyMSd+4K2KLUOm8VG7 Df0aBn6byHfA98j/bUvLUIMQes/hpTX9HxKMNq3P5btfOxc2Dy0zFshR6nu3ju2reBH0qKo iooUFGwXPTqbGxVKvfeVq3myMUZqLrj1QUWBtU7EDGKf13REtFNkd18c5wClY4tzO8hfH4Z sd8yemWkKRS1y8BcfMbww== X-UI-Out-Filterresults: notjunk:1; V01:K0:gx3b/Vh2/Pk=:qL2BD3sGeTdZe7yci1rCif HC6J0/+wTSMUc4Il075XEu5589Iv8F4HmimZzJ/0BtJS9ywQDCyUAqWXqHP0jEy9oRIFE7Q6t dB3nWVOnP2xgwrkIUoUJ1BBY/B7hG6uPm2ghcGrQnYmCjnunJqfLODe5SP+wAXQRrudmBnobn c/kNX/DtdxlQLuKt+ZHWBWiyWVGBL/skVqoTEAIaresTocmC6PKls+Gs/9iQnWhjnosTLSySf L4CSscJG1xLWW16o2A65JXGmKQScXw6A9a12ij33CmAssLs9MDWp3iawQpLmOIKALHt2L1MOM y1T8IVgoeZQEHtcemRsfyLlxslCky1sVfMD49XaHMp9OrI8CBE3H+1sNu8Iy9pm3kHh3lEvmD K541LYayDV9o8YjNUFFH3UvueIr4SPrU31jOFxPfD3aVxmsOYvV79qAO6X4rYDIsQf854sEuA B3gB+WdoVC2m5QkRqCREdbKUBBqLseXSmMOqXg6QjPtHJ181Nu2ZL7EpROgIf22p5IWYCmLfu zdsppZyEZS4UxliovpL35S50YBxEUSId9l0hHjJyyzvcOENi/beBdFsC/vJRWb+Z0GsMJ1IIh sBI+qm586sT7ycqVq/xBpBAOQ/JVks1Nw4H8ozhKYi2E+vK6CqxfiO7kWnqizZWUjLnKT/gdM 0Cr5p+5fJ9LasnMUjlE5OrxaQJVYjspIe2YxR31NdUKH+TZR3IaLbkPROmhYeeNB7j+g= Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This function is now called from the probe() function of a platform driver, which may be called later than __init, which triggers a lot of warnings like: WARNING: drivers/clk/built-in.o(.text+0x1a41c): Section mismatch in reference from the function sr_lcpll1_clk_init() to the function .init.text:iproc_pll_clk_setup() This removes the annotation on iproc_pll_clk_setup to address all those warnings. Fixes: 654cdd3229cd ("clk: bcm: Add clocks for Stingray SOC") Signed-off-by: Arnd Bergmann --- drivers/clk/bcm/clk-iproc-pll.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/bcm/clk-iproc-pll.c b/drivers/clk/bcm/clk-iproc-pll.c index 2d61893da024..375d8dd80d45 100644 --- a/drivers/clk/bcm/clk-iproc-pll.c +++ b/drivers/clk/bcm/clk-iproc-pll.c @@ -617,12 +617,12 @@ static void iproc_pll_sw_cfg(struct iproc_pll *pll) } } -void __init iproc_pll_clk_setup(struct device_node *node, - const struct iproc_pll_ctrl *pll_ctrl, - const struct iproc_pll_vco_param *vco, - unsigned int num_vco_entries, - const struct iproc_clk_ctrl *clk_ctrl, - unsigned int num_clks) +void iproc_pll_clk_setup(struct device_node *node, + const struct iproc_pll_ctrl *pll_ctrl, + const struct iproc_pll_vco_param *vco, + unsigned int num_vco_entries, + const struct iproc_clk_ctrl *clk_ctrl, + unsigned int num_clks) { int i, ret; struct iproc_pll *pll;