Skip to content

Commit

Permalink
ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Shawn Guo authored and Sascha Hauer committed Mar 23, 2011
1 parent 65047a0 commit 5d18724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/plat-mxc/devices/platform-fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct platform_device *__init imx_add_fec(
struct resource res[] = {
{
.start = data->iobase,
.end = data->iobase + SZ_4K,
.end = data->iobase + SZ_4K - 1,
.flags = IORESOURCE_MEM,
}, {
.start = data->irq,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-mxc/devices/platform-imxdi_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct platform_device *__init imx_add_imxdi_rtc(
struct resource res[] = {
{
.start = data->iobase,
.end = data->iobase + SZ_16K,
.end = data->iobase + SZ_16K - 1,
.flags = IORESOURCE_MEM,
}, {
.start = data->irq,
Expand Down

0 comments on commit 5d18724

Please sign in to comment.