From: Guennadi Liakhovetski Date: Fri, 15 Feb 2013 15:13:54 +0000 (+0100) Subject: mmc: sh_mmcif: use mmc_of_parse() to parse standard MMC DT bindings X-Git-Tag: next-20130220~55^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d93e9e617718c4680699ca838252908d2efb2af4;p=karo-tx-linux.git mmc: sh_mmcif: use mmc_of_parse() to parse standard MMC DT bindings Use mmc_of_parse() to get interface capability flags and used GPIOs from device-tree bindings. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 0189efcb9e12..ba76a532ae30 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1369,6 +1369,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) ret = -ENOMEM; goto ealloch; } + mmc_of_parse(mmc); host = mmc_priv(mmc); host->mmc = mmc; host->addr = reg; @@ -1381,7 +1382,7 @@ static int sh_mmcif_probe(struct platform_device *pdev) mmc->ops = &sh_mmcif_ops; sh_mmcif_init_ocr(host); - mmc->caps = MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY; + mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY; if (pd && pd->caps) mmc->caps |= pd->caps; mmc->max_segs = 32;