]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/nand/omap_elm.c
mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms
[karo-tx-uboot.git] / drivers / mtd / nand / omap_elm.c
similarity index 97%
rename from arch/arm/cpu/armv7/am33xx/elm.c
rename to drivers/mtd/nand/omap_elm.c
index 8f1d6afdd399a4b326f35cf4e38d5d4e8873bb24..2aa7807f3e5e5bba40b84b183073ada9bb490845 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/errno.h>
 #include <asm/arch/cpu.h>
 #include <asm/omap_gpmc.h>
-#include <asm/arch/elm.h>
+#include <asm/omap_elm.h>
 
 #define ELM_DEFAULT_POLY (0)
 
@@ -127,7 +127,7 @@ int elm_check_error(u8 *syndrome, u32 nibbles, u32 *error_count,
 
        for (i = 0; i < *error_count; i++) {
                error_locations[i] =
-                       readl(&elm_cfg->error_location[poly].error_location_x[i]);
+                    readl(&elm_cfg->error_location[poly].error_location_x[i]);
        }
 
        return 0;
@@ -175,7 +175,7 @@ void elm_reset(void)
 {
        /* initiate reset */
        writel((readl(&elm_cfg->sysconfig) | ELM_SYSCONFIG_SOFTRESET),
-                               &elm_cfg->sysconfig);
+                       &elm_cfg->sysconfig);
 
        /* wait for reset complete and normal operation */
        while ((readl(&elm_cfg->sysstatus) & ELM_SYSSTATUS_RESETDONE) !=