diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-08-23 15:11:44 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-21 11:57:51 +0900 |
commit | a1fd306b887f06d648f45a2c722e9036dced9590 (patch) | |
tree | 79fa5ca3bd5ac10a087902c43cea6bafb3ef02ec /arch/sh/boards/renesas | |
parent | b8996e49e8d777abd64833095a1cd291b749df18 (diff) | |
download | blackbird-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/renesas')
-rw-r--r-- | arch/sh/boards/renesas/r7780rp/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/renesas/rts7751r2d/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/renesas/x3proto/setup.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/boards/renesas/r7780rp/setup.c b/arch/sh/boards/renesas/r7780rp/setup.c index 1062346e1d34..3ab5fc4b55b7 100644 --- a/arch/sh/boards/renesas/r7780rp/setup.c +++ b/arch/sh/boards/renesas/r7780rp/setup.c @@ -112,7 +112,7 @@ static struct platform_device cf_ide_device = { static struct resource heartbeat_resources[] = { [0] = { .start = PA_OBLED, - .end = PA_OBLED + 8 - 1, + .end = PA_OBLED, .flags = IORESOURCE_MEM, }, }; @@ -133,7 +133,7 @@ static struct platform_device heartbeat_device = { /* R7785RP has a slightly more sensible FPGA.. */ #ifndef CONFIG_SH_R7785RP .dev = { - .platform_data = heartbeat_data, + .platform_data = &heartbeat_data, }, #endif .num_resources = ARRAY_SIZE(heartbeat_resources), diff --git a/arch/sh/boards/renesas/rts7751r2d/setup.c b/arch/sh/boards/renesas/rts7751r2d/setup.c index bea9848e5ff8..e62107d46fd9 100644 --- a/arch/sh/boards/renesas/rts7751r2d/setup.c +++ b/arch/sh/boards/renesas/rts7751r2d/setup.c @@ -76,7 +76,7 @@ static struct platform_device cf_ide_device = { static struct resource heartbeat_resources[] = { [0] = { .start = PA_OUTPORT, - .end = PA_OUTPORT + 8 - 1, + .end = PA_OUTPORT, .flags = IORESOURCE_MEM, }, }; diff --git a/arch/sh/boards/renesas/x3proto/setup.c b/arch/sh/boards/renesas/x3proto/setup.c index 0e26d3e7e4e1..abc5b6d418fe 100644 --- a/arch/sh/boards/renesas/x3proto/setup.c +++ b/arch/sh/boards/renesas/x3proto/setup.c @@ -18,7 +18,7 @@ static struct resource heartbeat_resources[] = { [0] = { .start = 0xb8140020, - .end = 0xb8140020 + 8 - 1, + .end = 0xb8140020, .flags = IORESOURCE_MEM, }, }; |