diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-12 12:16:34 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-09-25 21:57:16 -0400 |
commit | e02d2930040f993922e9c4449e3d90c8040cfedc (patch) | |
tree | f5aeba5c5a62a0d6839773212f46c511ba8c8b27 | |
parent | 71ef1ea418ee45a4f939d53a02410627b394c336 (diff) |
mmc: mvsdio: Convert to devm_ioremap_resource
devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource()
instead.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/mvsdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 06c5b0b28eb..a592407d2de 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c @@ -775,9 +775,9 @@ static int __init mvsd_probe(struct platform_device *pdev) spin_lock_init(&host->lock); - host->base = devm_request_and_ioremap(&pdev->dev, r); - if (!host->base) { - ret = -ENOMEM; + host->base = devm_ioremap_resource(&pdev->dev, r); + if (IS_ERR(host->base)) { + ret = PTR_ERR(host->base); goto out; } |