Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752210AbdFUV7Y (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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1448 Lines: 40 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; -- 2.9.0