mmc: omap_hsmmc: remove redundant reset done
authorBalaji T K <balajitk@ti.com>
Fri, 28 Feb 2014 13:38:24 +0000 (19:08 +0530)
committerChris Ball <chris@printf.net>
Tue, 4 Mar 2014 16:45:05 +0000 (11:45 -0500)
Remove redundant reset done check since omap hwmod layer ensures IP reset.

Signed-off-by: Balaji T K <balajitk@ti.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/omap_hsmmc.c

index f4e5a59a84c087966a71c01b87be66b826d7655b..d9c84ea46b63c19b56c37937cb52fc2a533d8012 100644 (file)
@@ -97,7 +97,6 @@
 #define SRC                    (1 << 25)
 #define SRD                    (1 << 26)
 #define SOFTRESET              (1 << 1)
-#define RESETDONE              (1 << 0)
 
 /* Interrupt masks for IE and ISE register */
 #define CC_EN                  (1 << 0)
@@ -632,9 +631,6 @@ static int omap_hsmmc_context_restore(struct omap_hsmmc_host *host)
        u32 hctl, capa;
        unsigned long timeout;
 
-       if (!OMAP_HSMMC_READ(host->base, SYSSTATUS) & RESETDONE)
-               return 1;
-
        if (host->con == OMAP_HSMMC_READ(host->base, CON) &&
            host->hctl == OMAP_HSMMC_READ(host->base, HCTL) &&
            host->sysctl == OMAP_HSMMC_READ(host->base, SYSCTL) &&
This page took 0.026164 seconds and 5 git commands to generate.