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: 106131 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2151039qgd; Wed, 21 Jun 2017 14:59:32 -0700 (PDT) X-Received: by 10.98.9.16 with SMTP id e16mr38273637pfd.57.1498082372499; Wed, 21 Jun 2017 14:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498082372; cv=none; d=google.com; s=arc-20160816; b=LKBRtxMsSupa503EBUmlHNqN3yuGQ3U1P9JLVIZbNTWoON4ibFDg6UJKaOQHkkMpdT 2lZmpxWtRe/iVWfJQzZFRq4NUFnwue4mmpCN9nse6yt27Px0ZBkAmephTRgMmm3qfeAT IyLwjB4Uozd0Vs6BY1cZMxr/QJ2br3MZ9ItAuZ03qYdsCdyv0IEJrJqwRFKyaRHqIYlj C3U1lrNogYT+0sLdeTE+EUP92s87yPlENKFbjRwlQW9jmBkiC+yz4ZuUyBtUtjAoQmkX qZdRGBoHRZVBEzNoJxysnAZE6AmWo07t9uDgvSRYHrm23eMiXtboy+Sv0qri8BOJVdrj TGHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=waDPMAOyCbBLjieKyGkmnJnQOodxpJeOKDv50uYWveU=; b=WIagIgTm/w1gW8NYUBG0GSgOkLFdZ5yxJuRIYweDBbqSa2kvij9Ih8kX+3tGSAM5CB /hDsVuluWwUSwq/di5qV2MLsESFK/hEmtoPWdObztIYM+unSwMZ8HNY1TlbiHXlJbLKm C627hmiobopFG4mV6QhvcpBkLK7Oom6oOdkXFm+mMZX+OITYzk+BtpbdrQ6BJMSrBrkY MPh2wW2iwQjlC9cRcfjorylEvEZHwFVdNeS+KUvcYw/TEYE5icuOEBU4d85fSf8utBuD r0XadYl/kwreTwAW27K7isaVD1vYB0lIDhmW2+8H7HQge+a3RDExqIyPOp3eHIvQQxi/ Kxbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3si15349843pld.272.2017.06.21.14.59.32; Wed, 21 Jun 2017 14:59:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbdFUV7Y (ORCPT + 25 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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;