summaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-se/770x
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-15 12:24:34 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-01-15 12:24:34 +0900
commita09d2831b3457a92a58d67bddfed370516acfe28 (patch)
tree8003b8a0739fea32be104f1e04ba43aabb744918 /arch/sh/boards/mach-se/770x
parent2267c7875b3a3a41b7a8cc9659d75ec934c98ffd (diff)
downloadblackbird-obmc-linux-a09d2831b3457a92a58d67bddfed370516acfe28.tar.gz
blackbird-obmc-linux-a09d2831b3457a92a58d67bddfed370516acfe28.zip
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/mach-se/770x')
-rw-r--r--arch/sh/boards/mach-se/770x/setup.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/sh/boards/mach-se/770x/setup.c b/arch/sh/boards/mach-se/770x/setup.c
index 527eb6b12610..66d39d1b0901 100644
--- a/arch/sh/boards/mach-se/770x/setup.c
+++ b/arch/sh/boards/mach-se/770x/setup.c
@@ -93,15 +93,12 @@ static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 };
static struct heartbeat_data heartbeat_data = {
.bit_pos = heartbeat_bit_pos,
.nr_bits = ARRAY_SIZE(heartbeat_bit_pos),
- .regsize = 16,
};
-static struct resource heartbeat_resources[] = {
- [0] = {
- .start = PA_LED,
- .end = PA_LED,
- .flags = IORESOURCE_MEM,
- },
+static struct resource heartbeat_resource = {
+ .start = PA_LED,
+ .end = PA_LED,
+ .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT,
};
static struct platform_device heartbeat_device = {
@@ -110,8 +107,8 @@ static struct platform_device heartbeat_device = {
.dev = {
.platform_data = &heartbeat_data,
},
- .num_resources = ARRAY_SIZE(heartbeat_resources),
- .resource = heartbeat_resources,
+ .num_resources = 1,
+ .resource = &heartbeat_resource,
};
#if defined(CONFIG_CPU_SUBTYPE_SH7710) ||\
OpenPOWER on IntegriCloud