]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: truncate ISA addresses to unsigned int
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 17 Feb 2009 21:01:51 +0000 (13:01 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 17 Feb 2009 21:01:51 +0000 (13:01 -0800)
commita7eb518998529c08cc53fef17756d9fe433b0c23
tree68efbd1592f2df847ffe5877c2a11c25d414b842
parentee8b53c1cfe33aecf0c77c0aa3ce437f0d84d831
x86: truncate ISA addresses to unsigned int

Impact: Cleanup; fix inappropriate macro use

ISA addresses on x86 are mapped 1:1 with the physical address space.
Since the ISA address space is only 24 bits (32 for VLB or LPC) it
will always fit in an unsigned int, and at least in the aha1542 driver
using a wider type would cause an undesirable promotion.  Hence
explicitly cast the ISA bus addresses to unsigned int.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>
arch/x86/include/asm/io.h