]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00142005-1 ARM: imx: srtc: the end address minus 1
authorLily Zhang <r58066@freescale.com>
Thu, 14 Apr 2011 05:24:02 +0000 (13:24 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:32:45 +0000 (08:32 +0200)
The end address of SRTC device in i.MX platform should be minus
1. Otherwise, it conflicts with the address of LDB device

Signed-off-by: Lily Zhang <r58066@freescale.com>
arch/arm/plat-mxc/devices/platform-imx_srtc.c

index 7dd23055f66bd7ada5416cfa79c8874a962fdee5..1f27f48f411064f3d36d2de2b7d4fffe5d396562 100755 (executable)
@@ -39,7 +39,7 @@ struct platform_device *__init imx_add_srtc(
        struct resource res[] = {
                {
                        .start = data->iobase,
-                       .end = data->iobase + SZ_16K,
+                       .end = data->iobase + SZ_16K - 1,
                        .flags = IORESOURCE_MEM,
                }, {
                        .start = data->irq,