From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 2 Sep 2010 11:53:49 +0100 Subject: [PATCH 1/3] h1940: use gpiolib for latch access In-Reply-To: <1282230003-2020-2-git-send-email-anarsoul@gmail.com> References: <1282230003-2020-1-git-send-email-anarsoul@gmail.com> <1282230003-2020-2-git-send-email-anarsoul@gmail.com> Message-ID: <20100902105349.GT26319@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Aug 19, 2010 at 06:00:01PM +0300, Vasily Khoruzhick wrote: > diff --git a/arch/arm/mach-s3c2410/mach-h1940.c b/arch/arm/mach-s3c2410/mach-h1940.c > index 779b45b..9717790 100644 > --- a/arch/arm/mach-s3c2410/mach-h1940.c > +++ b/arch/arm/mach-s3c2410/mach-h1940.c > @@ -42,6 +42,7 @@ > #include > #include > #include > +#include linux/gpio.h ? > > #include > #include > @@ -58,6 +59,16 @@ > #include > #include > > +#ifndef __ASSEMBLY__ > +#define H1940_LATCH ((void __force __iomem *)0xF8000000) > +#else > +#define H1940_LATCH 0xF8000000 > +#endif This file can never be built by the assembler, so the above is pointless. > + > +#define H1940_PA_LATCH (S3C2410_CS2) Parents not required. Rest looks fine to me.