]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CRIS: Fix I/O macros
authorCorey Minyard <cminyard@mvista.com>
Fri, 9 Nov 2012 03:03:44 +0000 (14:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:15:13 +0000 (15:15 +1100)
commit9ca9fefda83cd7ce09c746501f56f5d7a8de6fe5
treee35069b3de49f6ae97df17a0acb295f694e1d31d
parentecce65c252e42a663be08bee77277c364097fc9b
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