OSDN Git Service

ARM: pxa: define clock registers as __iomem
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Jan 2016 14:06:25 +0000 (15:06 +0100)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 1 Feb 2016 20:43:41 +0000 (21:43 +0100)
commitea7743e2719d34eacb4cb206ae227120029d06c6
tree5c2d86bbeb3b13e47c6c4fb60cf57210954e6c76
parent92e963f50fc74041b5e9e744c330dca48e04f08d
ARM: pxa: define clock registers as __iomem

We should not dereference registers as pointers, so use readl/writel
instead for these registers.

The clock registers are accessed in multiple files, so we have to
change them all at once.

I stumbled over these registers while looking at something unrelated.
There are in fact other registers with the same problem, but I did
not try to address those at this point.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/gumstix.c
arch/arm/mach-pxa/include/mach/pxa2xx-regs.h
arch/arm/mach-pxa/include/mach/pxa3xx-regs.h
arch/arm/mach-pxa/zeus.c
drivers/clk/pxa/clk-pxa25x.c
drivers/clk/pxa/clk-pxa27x.c
drivers/clk/pxa/clk-pxa3xx.c
drivers/cpufreq/pxa2xx-cpufreq.c