Commit 57879b8c authored by Marek Vasut's avatar Marek Vasut Committed by Eric Miao

ARM: pxa: use cpu_has_ipr() consistently in irq.c

Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
parent b6aec3a5
...@@ -226,7 +226,7 @@ static int pxa_irq_resume(struct sys_device *dev) ...@@ -226,7 +226,7 @@ static int pxa_irq_resume(struct sys_device *dev)
__raw_writel(0, base + ICLR); __raw_writel(0, base + ICLR);
} }
if (!cpu_is_pxa25x()) if (cpu_has_ipr())
for (i = 0; i < pxa_internal_irq_nr; i++) for (i = 0; i < pxa_internal_irq_nr; i++)
__raw_writel(saved_ipr[i], IRQ_BASE + IPR(i)); __raw_writel(saved_ipr[i], IRQ_BASE + IPR(i));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment