9
0
Fork 0

ARM: pcm970: Fix bug with CompactFlash

Patch adds missing MX27_PCMCIA_CTL_BASE_ADDR offset for "readl" operator.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2013-02-24 13:23:55 +04:00 committed by Sascha Hauer
parent d16adc0557
commit 97dfd44a57
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}