From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Weber Date: Wed, 19 May 2010 16:34:50 +0200 Subject: [U-Boot] [PATCH] arm:io.h: define __io() macro if not defined erlier In-Reply-To: <1274259427-29386-1-git-send-email-biessmann@corscience.de> References: <1274259427-29386-1-git-send-email-biessmann@corscience.de> Message-ID: <4BF3F70A.4020204@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, there is a typo in comment -> earlier. Am 19.05.2010 10:57, schrieb Andreas Bie?mann: > This patch adds __io() macro to enable {in|out}[bwl] macros in > arch/arm/asm/io.h > > Commit a45dde2293c816138e53c26eca6fd0322583f9a6 uses {in|out}[bwl] macros in > DM9000x and breaks compilation for arm devices. > > Signed-off-by: Andreas Bie?mann > --- > arch/arm/include/asm/io.h | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h > index 0a4b5be..ccbf80d 100644 > --- a/arch/arm/include/asm/io.h > +++ b/arch/arm/include/asm/io.h > @@ -173,6 +173,13 @@ extern void __raw_readsl(unsigned int addr, void *data, int longlen); > #if 0 /* XXX###XXX */ > #include > #endif /* XXX###XXX */ > +/* > + * we need to define __io(p) for {in,out}[bwl] macros. This macro may be > + * defined in a machine specific io definition earlier. > + */ > +#ifndef __io > +#define __io(p) (p) > +#endif > > /* > * IO port access primitives I tested it on Devkit8000. Tested-by: Thomas Weber