linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: josh.coombs@gmail.com (Joshua Coombs)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] clk: mvebu: Remove inappropriate __init tagging
Date: Fri,  4 Jan 2013 20:50:46 -0500	[thread overview]
Message-ID: <1357350646-1513-1-git-send-email-josh.coombs@gmail.com> (raw)

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 <josh.coombs@gmail.com>
---
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;
-- 
1.8.0.2

             reply	other threads:[~2013-01-05  1:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-05  1:50 Joshua Coombs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-05  1:47 [PATCH v2] clk: mvebu: Remove inappropriate __init tagging Joshua Coombs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1357350646-1513-1-git-send-email-josh.coombs@gmail.com \
    --to=josh.coombs@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).