]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
CRIS: Fix I/O macros
authorCorey Minyard <cminyard@mvista.com>
Fri, 12 Oct 2012 04:22:44 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 15 Oct 2012 01:21:57 +0000 (12:21 +1100)
commitcb5c6c2780a773de16e3036e3efe0c72bea71d95
tree01d48a4074da7c056d1d21d1cf83f36760f12325
parent73128cf6b358368e8ded3de11f781abebfed7cc4
CRIS: Fix I/O macros

The inb/outb macros for CRIS are broken from a number of points of view,
missing () around parameters and they have an unprotected if statement in
them.  This was breaking the compile of IPMI on CRIS and thus I was being
annoyed by build regressions, so I fixed them.

Plus I don't think they would have worked at all, since the data values
were missing "&" and the outsl had a "3" instead of a "4" for the size.
From what I can tell, this stuff is not used at all, so this can't be any
more broken than it was before, anyway.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Mikael Starvik <starvik@axis.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/cris/include/asm/io.h