[PATCH 3/3] irqchip: mips-gic: Use __raw_{readl,writel} for GIC registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No byte swapping is necessary for accessing the GIC registers.

Signed-off-by: Andrew Bresticker <abrestic@xxxxxxxxxxxx>
---
 drivers/irqchip/irq-mips-gic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c
index 61ac482..7ec3c18 100644
--- a/drivers/irqchip/irq-mips-gic.c
+++ b/drivers/irqchip/irq-mips-gic.c
@@ -37,12 +37,12 @@ static void __gic_irq_dispatch(void);
 
 static inline unsigned int gic_read(unsigned int reg)
 {
-	return readl(gic_base + reg);
+	return __raw_readl(gic_base + reg);
 }
 
 static inline void gic_write(unsigned int reg, unsigned int val)
 {
-	writel(val, gic_base + reg);
+	__raw_writel(val, gic_base + reg);
 }
 
 static inline void gic_update_bits(unsigned int reg, unsigned int mask,
-- 
2.1.0.rc2.206.gedb03e5






[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux