mmc: msm_sdhci: fix of_to_plat, CHECKME
Not sure how priv->base works here??
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c
index 863e600..43dde5c 100644
--- a/drivers/mmc/msm_sdhci.c
+++ b/drivers/mmc/msm_sdhci.c
@@ -227,8 +227,8 @@
host->index = fdtdec_get_uint(gd->fdt_blob, node, "index", 0);
priv->base = (void *)fdtdec_get_addr_size_auto_parent(gd->fdt_blob,
dev_of_offset(parent), node, "reg", 1, NULL, false);
- if (priv->base == (void *)FDT_ADDR_T_NONE ||
- host->ioaddr == (void *)FDT_ADDR_T_NONE)
+
+ if (host->ioaddr == (void *)FDT_ADDR_T_NONE)
return -EINVAL;
return 0;