ARM: pxa: use correct __iomem annotations
This tries to clear up the confusion between integers and iomem pointers in the marvell pxa platform. MMIO addresses are supposed to be __iomem* values, in order to let the Linux type checking work correctly. This patch moves the cast to __iomem as far back as possible, to the place where the MMIO virtual address windows are defined. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
@@ -87,7 +87,8 @@ static struct mfp_addr_map mmp2_addr_map[] __initdata = {
|
||||
|
||||
void mmp2_clear_pmic_int(void)
|
||||
{
|
||||
unsigned long mfpr_pmic, data;
|
||||
void __iomem *mfpr_pmic;
|
||||
unsigned long data;
|
||||
|
||||
mfpr_pmic = APB_VIRT_BASE + 0x1e000 + 0x2c4;
|
||||
data = __raw_readl(mfpr_pmic);
|
||||
|
Reference in New Issue
Block a user