All of lore.kernel.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RFC 1/8] clk: sunxi: fix initialization of basic clocks
Date: Tue, 23 Jul 2013 11:33:13 +0200	[thread overview]
Message-ID: <20130723093313.GB10389@lukather> (raw)
In-Reply-To: <1374541272-32173-2-git-send-email-emilio@elopez.com.ar>

Hi Emilio,

On Mon, Jul 22, 2013 at 10:01:05PM -0300, Emilio L?pez wrote:
> With the recent move towards CLK_OF_DECLARE(...), the driver stopped
> initializing osc32k, which is compatible "fixed-clock". This is because
> we never called of_clk_init(NULL). Fix this by moving the only other
> simple clock (osc24M) to use CLK_OF_DECLARE(...) and call of_clk_init(NULL)
> to initialize both of them.
> 
> Signed-off-by: Emilio L?pez <emilio@elopez.com.ar>
> ---
>  drivers/clk/sunxi/clk-sunxi.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
> index 412912b..323366b 100644
> --- a/drivers/clk/sunxi/clk-sunxi.c
> +++ b/drivers/clk/sunxi/clk-sunxi.c
> @@ -411,10 +411,7 @@ static void __init sunxi_gates_clk_setup(struct device_node *node,
>  }
>  
>  /* Matches for of_clk_init */
> -static const __initconst struct of_device_id clk_match[] = {
> -	{.compatible = "allwinner,sun4i-osc-clk", .data = sunxi_osc_clk_setup,},
> -	{}
> -};
> +CLK_OF_DECLARE(sunxi_osc, "allwinner,sun4i-osc-clk", sunxi_osc_clk_setup);

Maybe we can drop the comment and the newline above?

Apart from this nitpick,
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130723/2c6476d6/attachment.sig>

  reply	other threads:[~2013-07-23  9:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-23  1:01 [PATCH RFC 0/8] sunxi clk: PLL4/5/6 and module 0 support Emilio López
2013-07-23  1:01 ` [PATCH RFC 1/8] clk: sunxi: fix initialization of basic clocks Emilio López
2013-07-23  9:33   ` Maxime Ripard [this message]
2013-07-23  1:01 ` [PATCH RFC 2/8] clk: sunxi: register factors clocks behind composite Emilio López
2013-07-23  9:35   ` Maxime Ripard
2013-07-23  1:01 ` [PATCH RFC 3/8] clk: sunxi: add gating support to PLL1 Emilio López
2013-07-23 13:15   ` Maxime Ripard
2013-07-23  1:01 ` [PATCH RFC 4/8] ARM: sunxi: add PLL4 support Emilio López
2013-07-23  1:01 ` [PATCH RFC 5/8] clk: sunxi: add PLL5 and PLL6 support Emilio López
2013-07-23 13:22   ` Maxime Ripard
2013-07-23  1:01 ` [PATCH RFC 6/8] ARM: " Emilio López
2013-07-23  1:01 ` [PATCH RFC 7/8] clk: sunxi: mod0 support Emilio López
2013-07-23 13:29   ` Maxime Ripard
2013-07-23  1:01 ` [PATCH RFC 8/8] ARM: sun4i: mod0 clocks Emilio López

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=20130723093313.GB10389@lukather \
    --to=maxime.ripard@free-electrons.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.