sh: Limit ioremap_prot() to 32bit pgprot parts.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jan 2010 05:00:14 +0000 (14:00 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jan 2010 05:00:14 +0000 (14:00 +0900)
commit6d63e73d520b690e4378cef3003eb5f01f7d128c
tree9a28f581e591c684f76190dafda0910323065fda
parentf33609344acfdde1c1acedf6de3efe6b80af93a6
sh: Limit ioremap_prot() to 32bit pgprot parts.

Presently ioremap_prot() uses an unsigned long to pass the pgprot value
around. This results in the upper half of the pgprot being chomped when
using 64-bit pgprots on a 32-bit ABI (X2TLB and SH-5).

As the only users of ioremap_prot() are presently legacy parts, this
doesn't cause too much of an issue. In the future when the interface is
converted to use pgprot_t directly this can be re-enabled for the other
parts, too.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/include/asm/io.h