aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/se
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-08-23 02:11:44 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-20 22:57:51 -0400
commita1fd306b887f06d648f45a2c722e9036dced9590 (patch)
tree79fa5ca3bd5ac10a087902c43cea6bafb3ef02ec /arch/sh/boards/se
parentb8996e49e8d777abd64833095a1cd291b749df18 (diff)
sh: Fix up heartbeat build and resource size.
We were abusing the resource size for the number of bits, this has been reworked using proper platform data, so this can be tidied up now. Boards in general only have a 1-byte wide resource, which the ioremap_nocache() case already handles. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/se')
-rw-r--r--arch/sh/boards/se/7206/setup.c4
-rw-r--r--arch/sh/boards/se/7343/setup.c2
-rw-r--r--arch/sh/boards/se/770x/setup.c4
-rw-r--r--arch/sh/boards/se/7722/setup.c2
-rw-r--r--arch/sh/boards/se/7751/setup.c4
-rw-r--r--arch/sh/boards/se/7780/setup.c2
6 files changed, 9 insertions, 9 deletions
diff --git a/arch/sh/boards/se/7206/setup.c b/arch/sh/boards/se/7206/setup.c
index 5f041f86e3dd..293ba464f334 100644
--- a/arch/sh/boards/se/7206/setup.c
+++ b/arch/sh/boards/se/7206/setup.c
@@ -46,7 +46,7 @@ static struct heartbeat_data heartbeat_data = {
46static struct resource heartbeat_resources[] = { 46static struct resource heartbeat_resources[] = {
47 [0] = { 47 [0] = {
48 .start = PA_LED, 48 .start = PA_LED,
49 .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1, 49 .end = PA_LED,
50 .flags = IORESOURCE_MEM, 50 .flags = IORESOURCE_MEM,
51 }, 51 },
52}; 52};
@@ -55,7 +55,7 @@ static struct platform_device heartbeat_device = {
55 .name = "heartbeat", 55 .name = "heartbeat",
56 .id = -1, 56 .id = -1,
57 .dev = { 57 .dev = {
58 .platform_data = heartbeat_data, 58 .platform_data = &heartbeat_data,
59 }, 59 },
60 .num_resources = ARRAY_SIZE(heartbeat_resources), 60 .num_resources = ARRAY_SIZE(heartbeat_resources),
61 .resource = heartbeat_resources, 61 .resource = heartbeat_resources,
diff --git a/arch/sh/boards/se/7343/setup.c b/arch/sh/boards/se/7343/setup.c
index 8fec155e2ff7..c9431b3a051b 100644
--- a/arch/sh/boards/se/7343/setup.c
+++ b/arch/sh/boards/se/7343/setup.c
@@ -33,7 +33,7 @@ static struct platform_device smc91x_device = {
33static struct resource heartbeat_resources[] = { 33static struct resource heartbeat_resources[] = {
34 [0] = { 34 [0] = {
35 .start = PA_LED, 35 .start = PA_LED,
36 .end = PA_LED + 8 - 1, 36 .end = PA_LED,
37 .flags = IORESOURCE_MEM, 37 .flags = IORESOURCE_MEM,
38 }, 38 },
39}; 39};
diff --git a/arch/sh/boards/se/770x/setup.c b/arch/sh/boards/se/770x/setup.c
index 5172f994a1be..d07a3368f546 100644
--- a/arch/sh/boards/se/770x/setup.c
+++ b/arch/sh/boards/se/770x/setup.c
@@ -99,7 +99,7 @@ static struct heartbeat_data heartbeat_data = {
99static struct resource heartbeat_resources[] = { 99static struct resource heartbeat_resources[] = {
100 [0] = { 100 [0] = {
101 .start = PA_LED, 101 .start = PA_LED,
102 .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1, 102 .end = PA_LED,
103 .flags = IORESOURCE_MEM, 103 .flags = IORESOURCE_MEM,
104 }, 104 },
105}; 105};
@@ -108,7 +108,7 @@ static struct platform_device heartbeat_device = {
108 .name = "heartbeat", 108 .name = "heartbeat",
109 .id = -1, 109 .id = -1,
110 .dev = { 110 .dev = {
111 .platform_data = heartbeat_data, 111 .platform_data = &heartbeat_data,
112 }, 112 },
113 .num_resources = ARRAY_SIZE(heartbeat_resources), 113 .num_resources = ARRAY_SIZE(heartbeat_resources),
114 .resource = heartbeat_resources, 114 .resource = heartbeat_resources,
diff --git a/arch/sh/boards/se/7722/setup.c b/arch/sh/boards/se/7722/setup.c
index 8f1c8a617bb5..03b63457e178 100644
--- a/arch/sh/boards/se/7722/setup.c
+++ b/arch/sh/boards/se/7722/setup.c
@@ -21,7 +21,7 @@
21static struct resource heartbeat_resources[] = { 21static struct resource heartbeat_resources[] = {
22 [0] = { 22 [0] = {
23 .start = PA_LED, 23 .start = PA_LED,
24 .end = PA_LED + 8 - 1, 24 .end = PA_LED,
25 .flags = IORESOURCE_MEM, 25 .flags = IORESOURCE_MEM,
26 }, 26 },
27}; 27};
diff --git a/arch/sh/boards/se/7751/setup.c b/arch/sh/boards/se/7751/setup.c
index 5ed196827b0a..b007defc9945 100644
--- a/arch/sh/boards/se/7751/setup.c
+++ b/arch/sh/boards/se/7751/setup.c
@@ -25,7 +25,7 @@ static struct heartbeat_data heartbeat_data = {
25static struct resource heartbeat_resources[] = { 25static struct resource heartbeat_resources[] = {
26 [0] = { 26 [0] = {
27 .start = PA_LED, 27 .start = PA_LED,
28 .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1, 28 .end = PA_LED,
29 .flags = IORESOURCE_MEM, 29 .flags = IORESOURCE_MEM,
30 }, 30 },
31}; 31};
@@ -34,7 +34,7 @@ static struct platform_device heartbeat_device = {
34 .name = "heartbeat", 34 .name = "heartbeat",
35 .id = -1, 35 .id = -1,
36 .dev = { 36 .dev = {
37 .platform_data = heartbeat_data, 37 .platform_data = &heartbeat_data,
38 }, 38 },
39 .num_resources = ARRAY_SIZE(heartbeat_resources), 39 .num_resources = ARRAY_SIZE(heartbeat_resources),
40 .resource = heartbeat_resources, 40 .resource = heartbeat_resources,
diff --git a/arch/sh/boards/se/7780/setup.c b/arch/sh/boards/se/7780/setup.c
index 15c3ea4de920..76e53b26a808 100644
--- a/arch/sh/boards/se/7780/setup.c
+++ b/arch/sh/boards/se/7780/setup.c
@@ -19,7 +19,7 @@
19static struct resource heartbeat_resources[] = { 19static struct resource heartbeat_resources[] = {
20 [0] = { 20 [0] = {
21 .start = PA_LED, 21 .start = PA_LED,
22 .end = PA_LED + 8 - 1, 22 .end = PA_LED,
23 .flags = IORESOURCE_MEM, 23 .flags = IORESOURCE_MEM,
24 }, 24 },
25}; 25};