Re: [PATCH v3 6/7] ARM: davinci: dmxxx: gpio device creation

From: Sekhar Nori
Date: Tue Aug 27 2013 - 16:26:17 EST


On 8/18/2013 10:49 AM, Lad, Prabhakar wrote:
> From: Philip Avinash <avinashphilip@xxxxxx>
>
> Create davinci gpio device and remove gpio references in
> davinci_soc_info structure for dmxxx platforms. Also add Memory and IRQ
> resources for GPIO platform device. Also rearrange header file inclusion
> in group basis.
>
> Signed-off-by: Philip Avinash <avinashphilip@xxxxxx>
> Signed-off-by: Sekhar Nori <nsekhar@xxxxxx>
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>
> Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> ---
> arch/arm/mach-davinci/board-dm355-evm.c | 33 +++++++-----
> arch/arm/mach-davinci/board-dm355-leopard.c | 30 ++++++-----
> arch/arm/mach-davinci/board-dm365-evm.c | 30 ++++++-----
> arch/arm/mach-davinci/board-dm644x-evm.c | 40 ++++++++------
> arch/arm/mach-davinci/board-dm646x-evm.c | 37 +++++++------
> arch/arm/mach-davinci/board-neuros-osd2.c | 18 ++++---
> arch/arm/mach-davinci/davinci.h | 17 +++---
> arch/arm/mach-davinci/dm355.c | 54 +++++++++++++------
> arch/arm/mach-davinci/dm365.c | 58 ++++++++++++++-------
> arch/arm/mach-davinci/dm644x.c | 47 ++++++++++++-----
> arch/arm/mach-davinci/dm646x.c | 47 ++++++++++++-----
> arch/arm/mach-davinci/include/mach/common.h | 2 +
> arch/arm/mach-davinci/include/mach/gpio-davinci.h | 2 -
> 13 files changed, 272 insertions(+), 143 deletions(-)
>
> +int __init dm355_gpio_register()

This line and other lines like this for other SoCs causes
compiler warning.

> --- a/arch/arm/mach-davinci/include/mach/common.h
> +++ b/arch/arm/mach-davinci/include/mach/common.h
> @@ -38,6 +38,8 @@ struct davinci_timer_info {
>
> struct davinci_gpio_controller;
>
> +#define DAVINCI_GPIO_BASE 0x01c67000

No need to place this in a globally visible header.
There is a local davinci.h just for this purpose.

So here is the updated patch with all the SoC bits
of this patch moved.

Thanks,
Sekhar

---8<---