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/mach-se/7722 | |
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/mach-se/7722')
-rw-r--r-- | arch/sh/boards/mach-se/7722/setup.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/arch/sh/boards/mach-se/7722/setup.c b/arch/sh/boards/mach-se/7722/setup.c index b1cb9425b600..93675418171d 100644 --- a/arch/sh/boards/mach-se/7722/setup.c +++ b/arch/sh/boards/mach-se/7722/setup.c | |||
@@ -25,26 +25,17 @@ | |||
25 | #include <cpu/sh7722.h> | 25 | #include <cpu/sh7722.h> |
26 | 26 | ||
27 | /* Heartbeat */ | 27 | /* Heartbeat */ |
28 | static struct heartbeat_data heartbeat_data = { | 28 | static struct resource heartbeat_resource = { |
29 | .regsize = 16, | 29 | .start = PA_LED, |
30 | }; | 30 | .end = PA_LED, |
31 | 31 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT, | |
32 | static struct resource heartbeat_resources[] = { | ||
33 | [0] = { | ||
34 | .start = PA_LED, | ||
35 | .end = PA_LED, | ||
36 | .flags = IORESOURCE_MEM, | ||
37 | }, | ||
38 | }; | 32 | }; |
39 | 33 | ||
40 | static struct platform_device heartbeat_device = { | 34 | static struct platform_device heartbeat_device = { |
41 | .name = "heartbeat", | 35 | .name = "heartbeat", |
42 | .id = -1, | 36 | .id = -1, |
43 | .dev = { | 37 | .num_resources = 1, |
44 | .platform_data = &heartbeat_data, | 38 | .resource = &heartbeat_resource, |
45 | }, | ||
46 | .num_resources = ARRAY_SIZE(heartbeat_resources), | ||
47 | .resource = heartbeat_resources, | ||
48 | }; | 39 | }; |
49 | 40 | ||
50 | /* SMC91x */ | 41 | /* SMC91x */ |