mmc: omap_hsmmc: Pass on the suspend failure to the PM core
[pandora-kernel.git] / drivers / mmc / host / omap_hsmmc.c
index d5fe43d..bc27065 100644 (file)
@@ -2188,9 +2188,7 @@ static int omap_hsmmc_suspend(struct device *dev)
                } else {
                        host->suspended = 0;
                        if (host->pdata->resume) {
-                               ret = host->pdata->resume(&pdev->dev,
-                                                         host->slot_id);
-                               if (ret)
+                               if (host->pdata->resume(&pdev->dev, host->slot_id))
                                        dev_dbg(mmc_dev(host->mmc),
                                                "Unmask interrupt failed\n");
                        }