mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 15:13:52 +00:00
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>
This commit is contained in:
parent
6c702da653
commit
d43da8d716
@ -45,13 +45,13 @@ static struct irq_domain *davinci_cp_intc_irq_domain;
|
||||
|
||||
static inline unsigned int davinci_cp_intc_read(unsigned int offset)
|
||||
{
|
||||
return __raw_readl(davinci_cp_intc_base + offset);
|
||||
return readl_relaxed(davinci_cp_intc_base + offset);
|
||||
}
|
||||
|
||||
static inline void davinci_cp_intc_write(unsigned long value,
|
||||
unsigned int offset)
|
||||
{
|
||||
__raw_writel(value, davinci_cp_intc_base + offset);
|
||||
writel_relaxed(value, davinci_cp_intc_base + offset);
|
||||
}
|
||||
|
||||
static void davinci_cp_intc_ack_irq(struct irq_data *d)
|
||||
|
Loading…
Reference in New Issue
Block a user