ARM: OMAP2+: raw read and write endian fix
[deliverable/linux.git] / arch / arm / mach-omap2 / wd_timer.c
index d15c7bbab8e2948652bb99b42983473978c1cc97..97d6607d447a5cf6b5cc815787dc418fa8822675 100644 (file)
@@ -49,12 +49,12 @@ int omap2_wd_timer_disable(struct omap_hwmod *oh)
        }
 
        /* sequence required to disable watchdog */
-       __raw_writel(0xAAAA, base + OMAP_WDT_SPR);
-       while (__raw_readl(base + OMAP_WDT_WPS) & 0x10)
+       writel_relaxed(0xAAAA, base + OMAP_WDT_SPR);
+       while (readl_relaxed(base + OMAP_WDT_WPS) & 0x10)
                cpu_relax();
 
-       __raw_writel(0x5555, base + OMAP_WDT_SPR);
-       while (__raw_readl(base + OMAP_WDT_WPS) & 0x10)
+       writel_relaxed(0x5555, base + OMAP_WDT_SPR);
+       while (readl_relaxed(base + OMAP_WDT_WPS) & 0x10)
                cpu_relax();
 
        return 0;
This page took 0.026813 seconds and 5 git commands to generate.