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:
Родитель
6c702da653
Коммит
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче