Patch adds missing MX27_PCMCIA_CTL_BASE_ADDR offset for "readl" operator. Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> --- arch/arm/boards/pcm038/pcm970.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/pcm038/pcm970.c b/arch/arm/boards/pcm038/pcm970.c index a50a1f2..dd95f52 100644 --- a/arch/arm/boards/pcm038/pcm970.c +++ b/arch/arm/boards/pcm038/pcm970.c @@ -120,8 +120,8 @@ static void pcm970_ide_init(void) writel(0x0000001f, MX27_PCMCIA_CTL_BASE_ADDR + MX27_PCMCIA_PGSR); /* Make PCMCIA bank0 valid */ - writel(readl(MX27_PCMCIA_POR(0)) | (1 << 29), - MX27_PCMCIA_CTL_BASE_ADDR + MX27_PCMCIA_POR(0)); + i = readl(MX27_PCMCIA_CTL_BASE_ADDR + MX27_PCMCIA_POR(0)); + writel(i | (1 << 29), MX27_PCMCIA_CTL_BASE_ADDR + MX27_PCMCIA_POR(0)); platform_device_register(&pcm970_ide_device); } -- 1.7.12.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox