diff mbox

clk: spear: fix build error for spear3xx

Message ID 2592841.P0ZcyhdZJA@wuerfel (mailing list archive)
State New, archived
Headers show

Commit Message

Arnd Bergmann June 3, 2013, 10:05 p.m. UTC
This patch is required to be able to disable spear320 support
after the spear320_clk_init() prototype changed for the real
function but not for the dummy.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Comments

Viresh Kumar June 4, 2013, 4:44 a.m. UTC | #1
On Tue, Jun 4, 2013 at 3:35 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> This patch is required to be able to disable spear320 support
> after the spear320_clk_init() prototype changed for the real
> function but not for the dummy.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Mike Turquette June 11, 2013, 9:32 p.m. UTC | #2
Quoting Arnd Bergmann (2013-06-03 15:05:07)
> This patch is required to be able to disable spear320 support
> after the spear320_clk_init() prototype changed for the real
> function but not for the dummy.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Pulled into clk-fixes.

Thanks,
Mike

> 
> diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c
> index f9ec43f..080c3c5 100644
> --- a/drivers/clk/spear/spear3xx_clock.c
> +++ b/drivers/clk/spear/spear3xx_clock.c
> @@ -369,7 +369,7 @@ static void __init spear320_clk_init(void __iomem *soc_config_base)
>         clk_register_clkdev(clk, NULL, "60100000.serial");
>  }
>  #else
> -static inline void spear320_clk_init(void) { }
> +static inline void spear320_clk_init(void __iomem *soc_config_base) { }
>  #endif
>  
>  void __init spear3xx_clk_init(void __iomem *misc_base, void __iomem *soc_config_base)
diff mbox

Patch

diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c
index f9ec43f..080c3c5 100644
--- a/drivers/clk/spear/spear3xx_clock.c
+++ b/drivers/clk/spear/spear3xx_clock.c
@@ -369,7 +369,7 @@  static void __init spear320_clk_init(void __iomem *soc_config_base)
 	clk_register_clkdev(clk, NULL, "60100000.serial");
 }
 #else
-static inline void spear320_clk_init(void) { }
+static inline void spear320_clk_init(void __iomem *soc_config_base) { }
 #endif
 
 void __init spear3xx_clk_init(void __iomem *misc_base, void __iomem *soc_config_base)