mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mci: omap: Fix default value of mci.f_max
@ 2013-09-27 12:13 Teresa Gámez
  2013-09-27 12:19 ` Alexander Aring
  2013-09-27 13:38 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 8+ messages in thread
From: Teresa Gámez @ 2013-09-27 12:13 UTC (permalink / raw)
  To: barebox

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

Signed-off-by: Teresa Gámez <t.gamez@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-09-27 13:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-27 12:13 [PATCH] mci: omap: Fix default value of mci.f_max Teresa Gámez
2013-09-27 12:19 ` Alexander Aring
2013-09-27 13:29   ` Jean-Christophe PLAGNIOL-VILLARD
2013-09-27 13:36     ` Alexander Aring
2013-09-27 13:38 ` Jean-Christophe PLAGNIOL-VILLARD
2013-09-27 13:40   ` Alexander Aring
2013-09-27 13:45     ` Alexander Aring
2013-09-27 13:52       ` Teresa Gamez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox