[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BLUPR0101MB15544A2227A842AD0B327393D0380@BLUPR0101MB1554.prod.exchangelabs.com>
Date: Thu, 30 Nov 2017 17:11:05 +0000
From: Hartley Sweeten <HartleyS@...ionengravers.com>
To: Lukasz Majewski <lukma@...x.de>,
Alexander Sverdlin <alexander.sverdlin@...il.com>,
Arnd Bergmann <arnd@...db.de>,
"arndbergmann@...il.com" <arndbergmann@...il.com>
CC: Russell King <linux@...linux.org.uk>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Olof Johansson <olof@...om.net>,
"Linus Walleij" <linus.walleij@...aro.org>
Subject: RE: [PATCH v3 4/6] ARM: ep93xx: ts72xx: Rewrite map IO code to be
reusable
On Wednesday, November 29, 2017 5:45 PM, Lukasz Majewski wrote:
> The map IO common code has been excluded to be reused by other ts72xx clones.
>
> Signed-off-by: Lukasz Majewski <lukma@...x.de>
> Acked-by: Alexander Sverdlin <alexander.sverdlin@...il.com>
<snip>
> arch/arm/mach-ep93xx/ts72xx.c | 23 ++++++++++++++++-------
> 1 file changed, 16 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index 00e0e5b8babf..a6e473b3dcf6 100644
> --- a/arch/arm/mach-ep93xx/ts72xx.c
> +++ b/arch/arm/mach-ep93xx/ts72xx.c
> @@ -30,11 +30,6 @@
>
> static struct map_desc ts72xx_io_desc[] __initdata = {
> {
> - .virtual = (unsigned long)TS72XX_MODEL_VIRT_BASE,
> - .pfn = __phys_to_pfn(TS72XX_MODEL_PHYS_BASE),
> - .length = TS72XX_MODEL_SIZE,
> - .type = MT_DEVICE,
> - }, {
> .virtual = (unsigned long)TS72XX_OPTIONS_VIRT_BASE,
> .pfn = __phys_to_pfn(TS72XX_OPTIONS_PHYS_BASE),
> .length = TS72XX_OPTIONS_SIZE,
> @@ -47,12 +42,26 @@ static struct map_desc ts72xx_io_desc[] __initdata = {
> }
> };
>
> -static void __init ts72xx_map_io(void)
> +static struct map_desc ts72xx_common_io_desc[] __initdata = {
> + {
> + .virtual = (unsigned long)TS72XX_MODEL_VIRT_BASE,
> + .pfn = __phys_to_pfn(TS72XX_MODEL_PHYS_BASE),
> + .length = TS72XX_MODEL_SIZE,
> + .type = MT_DEVICE,
> + }
> +};
> +
> +void __init ts72xx_common_map_io(void)
> {
> ep93xx_map_io();
> - iotable_init(ts72xx_io_desc, ARRAY_SIZE(ts72xx_io_desc));
> + iotable_init(ts72xx_common_io_desc,
There is a trailing whitespace on the line above.
> +ARRAY_SIZE(ts72xx_common_io_desc));
This line is missing an indent.
> }
>
> +static void __init ts72xx_map_io(void)
> +{
> + ts72xx_common_map_io();
> + iotable_init(ts72xx_io_desc, ARRAY_SIZE(ts72xx_io_desc)); }
>
> /*************************************************************************
> * NAND flash
Hartley
Powered by blists - more mailing lists