diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-14 22:24:34 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-14 22:24:34 -0500 |
commit | a09d2831b3457a92a58d67bddfed370516acfe28 (patch) | |
tree | 8003b8a0739fea32be104f1e04ba43aabb744918 /arch/sh/boards/board-sh7785lcr.c | |
parent | 2267c7875b3a3a41b7a8cc9659d75ec934c98ffd (diff) |
sh: heartbeat: Update boards for access size hinting.
This updates the existing boards that specify the register width through
platform data to use the resource flags instead. This eliminates platform
data completely in most cases, and permits further improvement in the
heartbeat driver as well as shrinking the overall private data size.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/board-sh7785lcr.c')
-rw-r--r-- | arch/sh/boards/board-sh7785lcr.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index e5a8a2fde39c..7eea90db6cea 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c | |||
@@ -32,26 +32,17 @@ | |||
32 | * NOTE: This board has 2 physical memory maps. | 32 | * NOTE: This board has 2 physical memory maps. |
33 | * Please look at include/asm-sh/sh7785lcr.h or hardware manual. | 33 | * Please look at include/asm-sh/sh7785lcr.h or hardware manual. |
34 | */ | 34 | */ |
35 | static struct resource heartbeat_resources[] = { | 35 | static struct resource heartbeat_resource = { |
36 | [0] = { | 36 | .start = PLD_LEDCR, |
37 | .start = PLD_LEDCR, | 37 | .end = PLD_LEDCR, |
38 | .end = PLD_LEDCR, | 38 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, |
39 | .flags = IORESOURCE_MEM, | ||
40 | }, | ||
41 | }; | ||
42 | |||
43 | static struct heartbeat_data heartbeat_data = { | ||
44 | .regsize = 8, | ||
45 | }; | 39 | }; |
46 | 40 | ||
47 | static struct platform_device heartbeat_device = { | 41 | static struct platform_device heartbeat_device = { |
48 | .name = "heartbeat", | 42 | .name = "heartbeat", |
49 | .id = -1, | 43 | .id = -1, |
50 | .dev = { | 44 | .num_resources = 1, |
51 | .platform_data = &heartbeat_data, | 45 | .resource = &heartbeat_resource, |
52 | }, | ||
53 | .num_resources = ARRAY_SIZE(heartbeat_resources), | ||
54 | .resource = heartbeat_resources, | ||
55 | }; | 46 | }; |
56 | 47 | ||
57 | static struct mtd_partition nor_flash_partitions[] = { | 48 | static struct mtd_partition nor_flash_partitions[] = { |