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:
@@ -591,7 +591,7 @@ static void balloon3_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ct
|
||||
BALLOON3_NAND_CONTROL_REG);
|
||||
if (balloon3_ctl_set)
|
||||
__raw_writel(balloon3_ctl_set,
|
||||
BALLOON3_NAND_CONTROL_REG |
|
||||
BALLOON3_NAND_CONTROL_REG +
|
||||
BALLOON3_FPGA_SETnCLR);
|
||||
}
|
||||
|
||||
@@ -608,7 +608,7 @@ static void balloon3_nand_select_chip(struct mtd_info *mtd, int chip)
|
||||
__raw_writew(
|
||||
BALLOON3_NAND_CONTROL_FLCE0 | BALLOON3_NAND_CONTROL_FLCE1 |
|
||||
BALLOON3_NAND_CONTROL_FLCE2 | BALLOON3_NAND_CONTROL_FLCE3,
|
||||
BALLOON3_NAND_CONTROL_REG | BALLOON3_FPGA_SETnCLR);
|
||||
BALLOON3_NAND_CONTROL_REG + BALLOON3_FPGA_SETnCLR);
|
||||
|
||||
/* Deassert correct nCE line */
|
||||
__raw_writew(BALLOON3_NAND_CONTROL_FLCE0 << chip,
|
||||
@@ -626,7 +626,7 @@ static int balloon3_nand_probe(struct platform_device *pdev)
|
||||
int ret;
|
||||
|
||||
__raw_writew(BALLOON3_NAND_CONTROL2_16BIT,
|
||||
BALLOON3_NAND_CONTROL2_REG | BALLOON3_FPGA_SETnCLR);
|
||||
BALLOON3_NAND_CONTROL2_REG + BALLOON3_FPGA_SETnCLR);
|
||||
|
||||
ver = __raw_readw(BALLOON3_FPGA_VER);
|
||||
if (ver < 0x4f08)
|
||||
@@ -649,7 +649,7 @@ static int balloon3_nand_probe(struct platform_device *pdev)
|
||||
BALLOON3_NAND_CONTROL_FLCE0 | BALLOON3_NAND_CONTROL_FLCE1 |
|
||||
BALLOON3_NAND_CONTROL_FLCE2 | BALLOON3_NAND_CONTROL_FLCE3 |
|
||||
BALLOON3_NAND_CONTROL_FLWP,
|
||||
BALLOON3_NAND_CONTROL_REG | BALLOON3_FPGA_SETnCLR);
|
||||
BALLOON3_NAND_CONTROL_REG + BALLOON3_FPGA_SETnCLR);
|
||||
return 0;
|
||||
|
||||
err2:
|
||||
@@ -807,7 +807,7 @@ static void __init balloon3_init(void)
|
||||
|
||||
static struct map_desc balloon3_io_desc[] __initdata = {
|
||||
{ /* CPLD/FPGA */
|
||||
.virtual = BALLOON3_FPGA_VIRT,
|
||||
.virtual = (unsigned long)BALLOON3_FPGA_VIRT,
|
||||
.pfn = __phys_to_pfn(BALLOON3_FPGA_PHYS),
|
||||
.length = BALLOON3_FPGA_LENGTH,
|
||||
.type = MT_DEVICE,
|
||||
|
Reference in New Issue
Block a user