From patchwork Sat Jan 5 01:50:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Coombs X-Patchwork-Id: 1935421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 44BE03FDDA for ; Sat, 5 Jan 2013 01:53:44 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TrIuZ-00007d-CY; Sat, 05 Jan 2013 01:50:59 +0000 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TrIuV-00006z-CW for linux-arm-kernel@lists.infradead.org; Sat, 05 Jan 2013 01:50:55 +0000 X-Authority-Analysis: v=2.0 cv=O9a7TWBW c=1 sm=0 a=u7sprdIQ6Ji5RI4IF99lyg==:17 a=hZn9VFtz8_IA:10 a=0x0CFE2KVbIA:10 a=nDghuxUhq_wA:10 a=pGLkceISAAAA:8 a=VD_S6oXs540A:10 a=xdmXseEUdkjku6TM1H4A:9 a=MSl-tDqOz04A:10 a=u7sprdIQ6Ji5RI4IF99lyg==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 74.75.21.239 Received: from [74.75.21.239] ([74.75.21.239:34111] helo=localhost.localdomain) by hrndva-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 96/B4-01424-DF687E05; Sat, 05 Jan 2013 01:50:54 +0000 From: Joshua Coombs To: linux-arm-kernel@lists.infradead.org, jason@lakedaemon.net, andrew@lunn.ch, sebastian.hesselbarth@googlemail.com, mturquette@linaro.org Subject: [PATCH v2] clk: mvebu: Remove inappropriate __init tagging Date: Fri, 4 Jan 2013 20:50:46 -0500 Message-Id: <1357350646-1513-1-git-send-email-josh.coombs@gmail.com> X-Mailer: git-send-email 1.8.0.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130104_205055_505002_26AE01D1 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.3.2 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 http://www.dnswl.org/, no trust [71.74.56.122 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (josh.coombs[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Cc: linux@arm.linux.org.uk, Joshua Coombs X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org If the Orion WDT driver is built as a module, an opps occurs during clk lookup when calling mvebu_clk_gating_get_src(). Remove the inappropriate __init tag so the function is available for modules after kernel init. Signed-off-by: Joshua Coombs --- This is a fix for a bug and is intended for 3.8-rc drivers/clk/mvebu/clk-gating-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mvebu/clk-gating-ctrl.c b/drivers/clk/mvebu/clk-gating-ctrl.c index c6d3c26..8fa5408 100644 --- a/drivers/clk/mvebu/clk-gating-ctrl.c +++ b/drivers/clk/mvebu/clk-gating-ctrl.c @@ -32,7 +32,7 @@ struct mvebu_soc_descr { #define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw) -static struct clk __init *mvebu_clk_gating_get_src( +static struct clk *mvebu_clk_gating_get_src( struct of_phandle_args *clkspec, void *data) { struct mvebu_gating_ctrl *ctrl = (struct mvebu_gating_ctrl *)data;