]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sa1100/pxa: fix MTD_XIP build
authorArnd Bergmann <arnd@arndb.de>
Sat, 15 Mar 2014 10:21:06 +0000 (11:21 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2017 11:14:41 +0000 (13:14 +0200)
commite1ac9b91dc6d361210e1d8892b94f728baf28df3
tree89024119b39dd16dd487cf59d332f8a34c926d0e
parent14d8f500889e61294f66ff32735fbf37ecfc7d54
ARM: sa1100/pxa: fix MTD_XIP build

In commit d72131b3ec53d "ARM: sa11x0/pxa: convert OS timer registers
to IOMEM", the definition of the OSCR macro was changed to be an
__iomem pointer, but the same register is also used by the XIP
code. This patch does the corresponding change here as well.

On PXA, the IRQ register definitions were removed even earlier, in
commit 63a94a1b70dd ("ARM: pxa: avoid accessing interrupt registers
directly"). This patch unfortunately brings some of that back. An
earlier version of my patch moved the code into an external function,
which could not work for CONFIG_XIP_KERNEL+CONFIG_MTD_XIP, so this
restores something close to the original code.

Link: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-March/241716.html
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-pxa/include/mach/mtd-xip.h
arch/arm/mach-sa1100/include/mach/mtd-xip.h