drivers: mmc: fix upstream conflicts/issues

Signed-off-by: BlackMesa123 <brother12@hotmail.it>
This commit is contained in:
BlackMesa123 2018-08-17 13:20:23 +02:00
parent ff49781ee1
commit e971af97ef

View File

@ -58,7 +58,8 @@ int dw_mci_pltfm_register(struct platform_device *pdev,
host->irq_flags = 0;
host->pdata = pdev->dev.platform_data;
regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
/* For dw_mmc host driver */
regs = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dw_mmc");
host->regs = devm_ioremap_resource(&pdev->dev, regs);
if (IS_ERR(host->regs))
return PTR_ERR(host->regs);