]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] pxa/magician: Use SZ_64M for physmap resource
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sat, 17 Jan 2009 17:45:43 +0000 (18:45 +0100)
committerEric Miao <eric.miao@marvell.com>
Wed, 21 Jan 2009 07:06:36 +0000 (15:06 +0800)
Improves readability over the custom #define.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/magician.c

index f734d6635470ac62ff6b4a860959aea30870fe7f..b952508d5f94adfbedcb8c24d4aa54a9e7dca8e1 100644 (file)
@@ -693,11 +693,9 @@ static void magician_set_vpp(struct map_info *map, int vpp)
        gpio_set_value(EGPIO_MAGICIAN_FLASH_VPP, vpp);
 }
 
-#define PXA_CS_SIZE            0x04000000
-
 static struct resource strataflash_resource = {
        .start = PXA_CS0_PHYS,
-       .end   = PXA_CS0_PHYS + PXA_CS_SIZE - 1,
+       .end   = PXA_CS0_PHYS + SZ_64M - 1,
        .flags = IORESOURCE_MEM,
 };