diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c index 3f70e22..d171c1d 100644 --- a/drivers/mci/omap_hsmmc.c +++ b/drivers/mci/omap_hsmmc.c @@ -569,7 +569,7 @@ 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;