From ec1ebda198bb95dd9b07d14ac9fba847e9cfa5b3 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 13 Oct 2011 16:53:51 +0200 Subject: mci omap: do not fail on nonexistent pdata Signed-off-by: Sascha Hauer --- drivers/mci/omap_hsmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c index 3f70e22629..d171c1dcf7 100644 --- a/drivers/mci/omap_hsmmc.c +++ b/drivers/mci/omap_hsmmc.c @@ -569,7 +569,7 @@ static int omap_mmc_probe(struct device_d *dev) hsmmc->mci.f_min = 400000; pdata = (struct omap_hsmmc_platform_data *)dev->platform_data; - if (pdata->f_max) + if (pdata && pdata->f_max) hsmmc->mci.f_max = pdata->f_max; else hsmmc->mci.f_max = 52000000; -- cgit v1.2.3