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-sdk7780 | |
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-sdk7780')
-rw-r--r-- | arch/sh/boards/mach-sdk7780/setup.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/arch/sh/boards/mach-sdk7780/setup.c b/arch/sh/boards/mach-sdk7780/setup.c index aad94a78dc70..1d04657e992d 100644 --- a/arch/sh/boards/mach-sdk7780/setup.c +++ b/arch/sh/boards/mach-sdk7780/setup.c | |||
@@ -20,27 +20,18 @@ | |||
20 | 20 | ||
21 | #define GPIO_PECR 0xFFEA0008 | 21 | #define GPIO_PECR 0xFFEA0008 |
22 | 22 | ||
23 | //* Heartbeat */ | 23 | /* Heartbeat */ |
24 | static struct heartbeat_data heartbeat_data = { | 24 | static struct resource heartbeat_resource = { |
25 | .regsize = 16, | 25 | .start = PA_LED, |
26 | }; | 26 | .end = PA_LED, |
27 | 27 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT, | |
28 | static struct resource heartbeat_resources[] = { | ||
29 | [0] = { | ||
30 | .start = PA_LED, | ||
31 | .end = PA_LED, | ||
32 | .flags = IORESOURCE_MEM, | ||
33 | }, | ||
34 | }; | 28 | }; |
35 | 29 | ||
36 | static struct platform_device heartbeat_device = { | 30 | static struct platform_device heartbeat_device = { |
37 | .name = "heartbeat", | 31 | .name = "heartbeat", |
38 | .id = -1, | 32 | .id = -1, |
39 | .dev = { | 33 | .num_resources = 1 |
40 | .platform_data = &heartbeat_data, | 34 | .resource = &heartbeat_resource, |
41 | }, | ||
42 | .num_resources = ARRAY_SIZE(heartbeat_resources), | ||
43 | .resource = heartbeat_resources, | ||
44 | }; | 35 | }; |
45 | 36 | ||
46 | /* SMC91x */ | 37 | /* SMC91x */ |