linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: bcmring: fix build error due to bad AMBA_APB_DEVICE init
@ 2012-04-16  5:24 Olof Johansson
  2012-04-16 17:59 ` Jiandong Zheng
  0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2012-04-16  5:24 UTC (permalink / raw)
  To: linux-arm-kernel

Seems to have been introduced by:
8ede1ae65 ARM: amba: bcmring: use common amba device initializers

'id' is the missing parameter, and with the old initializer the value
used was 0. Use the same here.

arch/arm/mach-bcmring/core.c:55:77: error: macro "AMBA_APB_DEVICE" requires 6 arguments, but only 5 given
arch/arm/mach-bcmring/core.c:55:8: warning: type defaults to 'int' in declaration of 'AMBA_APB_DEVICE' [-Wimplicit-int]
arch/arm/mach-bcmring/core.c:56:77: error: macro "AMBA_APB_DEVICE" requires 6 arguments, but only 5 given
arch/arm/mach-bcmring/core.c:56:8: warning: type defaults to 'int' in declaration of 'AMBA_APB_DEVICE' [-Wimplicit-int]

Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Jiandong Zheng <jdzheng@broadcom.com>
---
 arch/arm/mach-bcmring/core.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-bcmring/core.c b/arch/arm/mach-bcmring/core.c
index 22e4e0a..56d8b0f 100644
--- a/arch/arm/mach-bcmring/core.c
+++ b/arch/arm/mach-bcmring/core.c
@@ -52,8 +52,8 @@
 #include <mach/csp/chipcHw_inline.h>
 #include <mach/csp/tmrHw_reg.h>
 
-static AMBA_APB_DEVICE(uartA, "uarta", MM_ADDR_IO_UARTA, { IRQ_UARTA }, NULL);
-static AMBA_APB_DEVICE(uartB, "uartb", MM_ADDR_IO_UARTB, { IRQ_UARTB }, NULL);
+static AMBA_APB_DEVICE(uartA, "uarta", 0, MM_ADDR_IO_UARTA, { IRQ_UARTA }, NULL);
+static AMBA_APB_DEVICE(uartB, "uartb", 0, MM_ADDR_IO_UARTB, { IRQ_UARTB }, NULL);
 
 static struct clk pll1_clk = {
 	.name = "PLL1",
-- 
1.7.9.2.359.gebfc2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: bcmring: fix build error due to bad AMBA_APB_DEVICE init
  2012-04-16  5:24 [PATCH] ARM: bcmring: fix build error due to bad AMBA_APB_DEVICE init Olof Johansson
@ 2012-04-16 17:59 ` Jiandong Zheng
  0 siblings, 0 replies; 2+ messages in thread
From: Jiandong Zheng @ 2012-04-16 17:59 UTC (permalink / raw)
  To: linux-arm-kernel

On 4/15/2012 10:24 PM, Olof Johansson wrote:
> Seems to have been introduced by:
> 8ede1ae65 ARM: amba: bcmring: use common amba device initializers
>
> 'id' is the missing parameter, and with the old initializer the value
> used was 0. Use the same here.
>
> arch/arm/mach-bcmring/core.c:55:77: error: macro "AMBA_APB_DEVICE" requires 6 arguments, but only 5 given
> arch/arm/mach-bcmring/core.c:55:8: warning: type defaults to 'int' in declaration of 'AMBA_APB_DEVICE' [-Wimplicit-int]
> arch/arm/mach-bcmring/core.c:56:77: error: macro "AMBA_APB_DEVICE" requires 6 arguments, but only 5 given
> arch/arm/mach-bcmring/core.c:56:8: warning: type defaults to 'int' in declaration of 'AMBA_APB_DEVICE' [-Wimplicit-int]
>
> Signed-off-by: Olof Johansson<olof@lixom.net>
> Cc: Russell King<linux@arm.linux.org.uk>
> Cc: Jiandong Zheng<jdzheng@broadcom.com>
> ---
>   arch/arm/mach-bcmring/core.c |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-bcmring/core.c b/arch/arm/mach-bcmring/core.c
> index 22e4e0a..56d8b0f 100644
> --- a/arch/arm/mach-bcmring/core.c
> +++ b/arch/arm/mach-bcmring/core.c
> @@ -52,8 +52,8 @@
>   #include<mach/csp/chipcHw_inline.h>
>   #include<mach/csp/tmrHw_reg.h>
>
> -static AMBA_APB_DEVICE(uartA, "uarta", MM_ADDR_IO_UARTA, { IRQ_UARTA }, NULL);
> -static AMBA_APB_DEVICE(uartB, "uartb", MM_ADDR_IO_UARTB, { IRQ_UARTB }, NULL);
> +static AMBA_APB_DEVICE(uartA, "uarta", 0, MM_ADDR_IO_UARTA, { IRQ_UARTA }, NULL);
> +static AMBA_APB_DEVICE(uartB, "uartb", 0, MM_ADDR_IO_UARTB, { IRQ_UARTB }, NULL);
>
>   static struct clk pll1_clk = {
>   	.name = "PLL1",
Acked-by: Jiandong Zheng <jdzheng@broadcom.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-16 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16  5:24 [PATCH] ARM: bcmring: fix build error due to bad AMBA_APB_DEVICE init Olof Johansson
2012-04-16 17:59 ` Jiandong Zheng

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).