aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/board-sh7785lcr.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-14 22:24:34 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-14 22:24:34 -0500
commita09d2831b3457a92a58d67bddfed370516acfe28 (patch)
tree8003b8a0739fea32be104f1e04ba43aabb744918 /arch/sh/boards/board-sh7785lcr.c
parent2267c7875b3a3a41b7a8cc9659d75ec934c98ffd (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.c21
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 */
35static struct resource heartbeat_resources[] = { 35static 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
43static struct heartbeat_data heartbeat_data = {
44 .regsize = 8,
45}; 39};
46 40
47static struct platform_device heartbeat_device = { 41static 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
57static struct mtd_partition nor_flash_partitions[] = { 48static struct mtd_partition nor_flash_partitions[] = {