Commit e02d2930 authored by Sachin Kamat's avatar Sachin Kamat Committed by Chris Ball

mmc: mvsdio: Convert to devm_ioremap_resource

devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource()
instead.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 71ef1ea4
...@@ -775,9 +775,9 @@ static int __init mvsd_probe(struct platform_device *pdev) ...@@ -775,9 +775,9 @@ static int __init mvsd_probe(struct platform_device *pdev)
spin_lock_init(&host->lock); spin_lock_init(&host->lock);
host->base = devm_request_and_ioremap(&pdev->dev, r); host->base = devm_ioremap_resource(&pdev->dev, r);
if (!host->base) { if (IS_ERR(host->base)) {
ret = -ENOMEM; ret = PTR_ERR(host->base);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment