diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-02-14 09:52:27 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2019-02-19 09:33:37 -0500 |
commit | d43da8d7164a97b4da179ee06b305019d870a44f (patch) | |
tree | 31c1fa361ac02788bfafce85a0e9432f20c52300 | |
parent | 6c702da653d1a32e1410597f62b4f54ddaff1f9d (diff) |
ARM: davinci: cp-intc: use readl/writel_relaxed()
Replace all calls to __raw_readl() & __raw_writel() with readl_relaxed()
and writel_relaxed() respectively. It's safe to do as there's no
endianness conversion being done in the code.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r-- | arch/arm/mach-davinci/cp_intc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index 1bf11fa8be76..f88b7f0978aa 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c | |||
@@ -45,13 +45,13 @@ static struct irq_domain *davinci_cp_intc_irq_domain; | |||
45 | 45 | ||
46 | static inline unsigned int davinci_cp_intc_read(unsigned int offset) | 46 | static inline unsigned int davinci_cp_intc_read(unsigned int offset) |
47 | { | 47 | { |
48 | return __raw_readl(davinci_cp_intc_base + offset); | 48 | return readl_relaxed(davinci_cp_intc_base + offset); |
49 | } | 49 | } |
50 | 50 | ||
51 | static inline void davinci_cp_intc_write(unsigned long value, | 51 | static inline void davinci_cp_intc_write(unsigned long value, |
52 | unsigned int offset) | 52 | unsigned int offset) |
53 | { | 53 | { |
54 | __raw_writel(value, davinci_cp_intc_base + offset); | 54 | writel_relaxed(value, davinci_cp_intc_base + offset); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void davinci_cp_intc_ack_irq(struct irq_data *d) | 57 | static void davinci_cp_intc_ack_irq(struct irq_data *d) |