[PATCH] mci: omap: Fix default value of mci.f_max

Teresa Gámez t.gamez at phytec.de
Fri Sep 27 08:13:00 EDT 2013


Set default value of mci.f_max even when no pdata
is available.

Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
---
 drivers/mci/omap_hsmmc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c
index a2cd3fe..f63697f 100644
--- a/drivers/mci/omap_hsmmc.c
+++ b/drivers/mci/omap_hsmmc.c
@@ -614,11 +614,11 @@ static int omap_mmc_probe(struct device_d *dev)
 	if (pdata) {
 		if (pdata->f_max)
 			hsmmc->mci.f_max = pdata->f_max;
-		else
-			hsmmc->mci.f_max = 52000000;
 
 		if (pdata->devname)
 			hsmmc->mci.devname = pdata->devname;
+	} else {
+		hsmmc->mci.f_max = 52000000;
 	}
 
 
-- 
1.7.0.4




More information about the barebox mailing list