All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/9] clk: armada-xp: Fix incorrect placement of __initconst
Date: Mon, 12 Aug 2013 12:31:07 +0200	[thread overview]
Message-ID: <5208B96B.5030109@free-electrons.com> (raw)
In-Reply-To: <1376298847-21828-5-git-send-email-sachin.kamat@linaro.org>

On 12/08/2013 11:14, Sachin Kamat wrote:
> __initconst should be placed between the variable name and equal
> sign for the variable to be placed in the intended section.
> 

Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Gregory Clement <gregory.clement@free-electrons.com>
> ---
>  drivers/clk/mvebu/armada-xp.c |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/clk/mvebu/armada-xp.c b/drivers/clk/mvebu/armada-xp.c
> index 13b62ce..9922c44 100644
> --- a/drivers/clk/mvebu/armada-xp.c
> +++ b/drivers/clk/mvebu/armada-xp.c
> @@ -40,7 +40,7 @@
>  
>  enum { AXP_CPU_TO_NBCLK, AXP_CPU_TO_HCLK, AXP_CPU_TO_DRAMCLK };
>  
> -static const struct coreclk_ratio __initconst axp_coreclk_ratios[] = {
> +static const struct coreclk_ratio axp_coreclk_ratios[] __initconst = {
>  	{ .id = AXP_CPU_TO_NBCLK, .name = "nbclk" },
>  	{ .id = AXP_CPU_TO_HCLK, .name = "hclk" },
>  	{ .id = AXP_CPU_TO_DRAMCLK, .name = "dramclk" },
> @@ -52,7 +52,7 @@ static u32 __init axp_get_tclk_freq(void __iomem *sar)
>  	return 250000000;
>  }
>  
> -static const u32 __initconst axp_cpu_freqs[] = {
> +static const u32 axp_cpu_freqs[] __initconst = {
>  	1000000000,
>  	1066000000,
>  	1200000000,
> @@ -89,7 +89,7 @@ static u32 __init axp_get_cpu_freq(void __iomem *sar)
>  	return cpu_freq;
>  }
>  
> -static const int __initconst axp_nbclk_ratios[32][2] = {
> +static const int axp_nbclk_ratios[32][2] __initconst = {
>  	{0, 1}, {1, 2}, {2, 2}, {2, 2},
>  	{1, 2}, {1, 2}, {1, 1}, {2, 3},
>  	{0, 1}, {1, 2}, {2, 4}, {0, 1},
> @@ -100,7 +100,7 @@ static const int __initconst axp_nbclk_ratios[32][2] = {
>  	{0, 1}, {0, 1}, {0, 1}, {0, 1},
>  };
>  
> -static const int __initconst axp_hclk_ratios[32][2] = {
> +static const int axp_hclk_ratios[32][2] __initconst = {
>  	{0, 1}, {1, 2}, {2, 6}, {2, 3},
>  	{1, 3}, {1, 4}, {1, 2}, {2, 6},
>  	{0, 1}, {1, 6}, {2, 10}, {0, 1},
> @@ -111,7 +111,7 @@ static const int __initconst axp_hclk_ratios[32][2] = {
>  	{0, 1}, {0, 1}, {0, 1}, {0, 1},
>  };
>  
> -static const int __initconst axp_dramclk_ratios[32][2] = {
> +static const int axp_dramclk_ratios[32][2] __initconst = {
>  	{0, 1}, {1, 2}, {2, 3}, {2, 3},
>  	{1, 3}, {1, 2}, {1, 2}, {2, 6},
>  	{0, 1}, {1, 3}, {2, 5}, {0, 1},
> @@ -169,7 +169,7 @@ CLK_OF_DECLARE(axp_core_clk, "marvell,armada-xp-core-clock",
>   * Clock Gating Control
>   */
>  
> -static const struct clk_gating_soc_desc __initconst axp_gating_desc[] = {
> +static const struct clk_gating_soc_desc axp_gating_desc[] __initconst = {
>  	{ "audio", NULL, 0, 0 },
>  	{ "ge3", NULL, 1, 0 },
>  	{ "ge2", NULL,  2, 0 },
> 


-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-08-12 10:31 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-12  9:13 [PATCH 1/9] clk: bcm2835: Fix incorrect placement of __initconst Sachin Kamat
2013-08-12  9:14 ` [PATCH 2/9] clk: nomadik: " Sachin Kamat
2013-08-13  6:14   ` Linus Walleij
2013-08-12  9:14 ` [PATCH 3/9] clk: u300: " Sachin Kamat
2013-08-16 15:10   ` Linus Walleij
2013-08-12  9:14 ` [PATCH 4/9] clk: armada-370: " Sachin Kamat
2013-08-12 10:30   ` Gregory CLEMENT
2013-08-12  9:14 ` [PATCH 5/9] clk: armada-xp: " Sachin Kamat
2013-08-12 10:31   ` Gregory CLEMENT [this message]
2013-08-12  9:14 ` [PATCH 6/9] clk: dove: " Sachin Kamat
2013-08-12 10:31   ` Gregory CLEMENT
2013-08-12  9:14 ` [PATCH 7/9] clk: kirkwood: " Sachin Kamat
2013-08-12 10:32   ` Gregory CLEMENT
2013-08-12  9:14 ` [PATCH 8/9] clk: sunxi: " Sachin Kamat
2013-08-28  1:44   ` Mike Turquette
2013-08-12  9:14 ` [PATCH 9/9] clk: s3c64xx: Fix incorrect placement of __initdata Sachin Kamat
2013-08-12 15:48 ` [PATCH 1/9] clk: bcm2835: Fix incorrect placement of __initconst Stephen Warren
2013-08-19  3:38   ` Sachin Kamat

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=5208B96B.5030109@free-electrons.com \
    --to=gregory.clement@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.