aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/board-urquell.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-urquell.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-urquell.c')
-rw-r--r--arch/sh/boards/board-urquell.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/arch/sh/boards/board-urquell.c b/arch/sh/boards/board-urquell.c
index 36b8bac9b124..268f09e46568 100644
--- a/arch/sh/boards/board-urquell.c
+++ b/arch/sh/boards/board-urquell.c
@@ -50,26 +50,17 @@
50 */ 50 */
51 51
52/* HeartBeat */ 52/* HeartBeat */
53static struct resource heartbeat_resources[] = { 53static struct resource heartbeat_resource = {
54 [0] = { 54 .start = BOARDREG(SLEDR),
55 .start = BOARDREG(SLEDR), 55 .end = BOARDREG(SLEDR),
56 .end = BOARDREG(SLEDR), 56 .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT,
57 .flags = IORESOURCE_MEM,
58 },
59};
60
61static struct heartbeat_data heartbeat_data = {
62 .regsize = 16,
63}; 57};
64 58
65static struct platform_device heartbeat_device = { 59static struct platform_device heartbeat_device = {
66 .name = "heartbeat", 60 .name = "heartbeat",
67 .id = -1, 61 .id = -1,
68 .dev = { 62 .num_resources = 1
69 .platform_data = &heartbeat_data, 63 .resource = &heartbeat_resource,
70 },
71 .num_resources = ARRAY_SIZE(heartbeat_resources),
72 .resource = heartbeat_resources,
73}; 64};
74 65
75/* LAN91C111 */ 66/* LAN91C111 */