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:
@@ -13,7 +13,7 @@
|
||||
|
||||
#define PXA2XX_SMEMC_BASE 0x48000000
|
||||
#define PXA3XX_SMEMC_BASE 0x4a000000
|
||||
#define SMEMC_VIRT 0xf6000000
|
||||
#define SMEMC_VIRT IOMEM(0xf6000000)
|
||||
|
||||
#define MDCNFG (SMEMC_VIRT + 0x00) /* SDRAM Configuration Register 0 */
|
||||
#define MDREFR (SMEMC_VIRT + 0x04) /* SDRAM Refresh Control Register */
|
||||
|
Reference in New Issue
Block a user