projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dee6316
)
[ARM] pxa/magician: Use SZ_64M for physmap resource
author
Philipp Zabel
<philipp.zabel@gmail.com>
Sat, 17 Jan 2009 17:45:43 +0000
(18:45 +0100)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/arch/arm/mach-pxa/magician.c
b/arch/arm/mach-pxa/magician.c
index f734d6635470ac62ff6b4a860959aea30870fe7f..b952508d5f94adfbedcb8c24d4aa54a9e7dca8e1 100644
(file)
--- a/
arch/arm/mach-pxa/magician.c
+++ b/
arch/arm/mach-pxa/magician.c
@@
-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,
};