]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CRIS: Fix I/O macros
authorCorey Minyard <cminyard@mvista.com>
Thu, 25 Oct 2012 01:14:36 +0000 (12:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 29 Oct 2012 03:17:13 +0000 (14:17 +1100)
commit090fa53063149b217f4a5cede62006145dcd613e
treedd7359d4ee07106e98d3be6483db2276533d599f
parent040161032afdb3d5f2841a683660046cb8d3213b
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