summaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/se/7751
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-08-23 15:11:44 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-09-21 11:57:51 +0900
commita1fd306b887f06d648f45a2c722e9036dced9590 (patch)
tree79fa5ca3bd5ac10a087902c43cea6bafb3ef02ec /arch/sh/boards/se/7751
parentb8996e49e8d777abd64833095a1cd291b749df18 (diff)
downloadblackbird-op-linux-a1fd306b887f06d648f45a2c722e9036dced9590.tar.gz
blackbird-op-linux-a1fd306b887f06d648f45a2c722e9036dced9590.zip
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/7751')
-rw-r--r--arch/sh/boards/se/7751/setup.c4
1 files changed, 2 insertions, 2 deletions
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 = {
static struct resource heartbeat_resources[] = {
[0] = {
.start = PA_LED,
- .end = PA_LED + ARRAY_SIZE(heartbeat_bit_pos) - 1,
+ .end = PA_LED,
.flags = IORESOURCE_MEM,
},
};
@@ -34,7 +34,7 @@ static struct platform_device heartbeat_device = {
.name = "heartbeat",
.id = -1,
.dev = {
- .platform_data = heartbeat_data,
+ .platform_data = &heartbeat_data,
},
.num_resources = ARRAY_SIZE(heartbeat_resources),
.resource = heartbeat_resources,
OpenPOWER on IntegriCloud