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:
52df44d
)
ARM: S3C24XX: Use common macro to define resources on mach-gta02.c
author
Tushar Behera
<
[email protected]
>
Sat, 12 May 2012 07:12:23 +0000
(16:12 +0900)
committer
Kukjin Kim
<
[email protected]
>
Sat, 12 May 2012 07:12:23 +0000
(16:12 +0900)
Cc: Nelson Castillo <
[email protected]
>
Cc: Ben Dooks <
[email protected]
>
Signed-off-by: Tushar Behera <
[email protected]
>
Signed-off-by: Kukjin Kim <
[email protected]
>
arch/arm/mach-s3c24xx/mach-gta02.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-s3c24xx/mach-gta02.c
b/arch/arm/mach-s3c24xx/mach-gta02.c
index ba5d85394105c4b611cbb121a2ca138b69d41db3..0f29f64a3eeb8b98c3b3e6ccd394687cffe83b42 100644
(file)
--- a/
arch/arm/mach-s3c24xx/mach-gta02.c
+++ b/
arch/arm/mach-s3c24xx/mach-gta02.c
@@
-387,11
+387,8
@@
static struct physmap_flash_data gta02_nor_flash_data = {
.width = 2,
};
-static struct resource gta02_nor_flash_resource = {
- .start = GTA02_FLASH_BASE,
- .end = GTA02_FLASH_BASE + GTA02_FLASH_SIZE - 1,
- .flags = IORESOURCE_MEM,
-};
+static struct resource gta02_nor_flash_resource =
+ DEFINE_RES_MEM(GTA02_FLASH_BASE, GTA02_FLASH_SIZE);
static struct platform_device gta02_nor_flash = {
.name = "physmap-flash",