Skip to content

Commit

Permalink
[ARM] pxa/magician: Use SZ_64M for physmap resource
Browse files Browse the repository at this point in the history
Improves readability over the custom #define.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
  • Loading branch information
Philipp Zabel authored and Eric Miao committed Jan 21, 2009
1 parent dee6316 commit fcb78d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/arm/mach-pxa/magician.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit fcb78d1

Please sign in to comment.