diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-12 06:46:34 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-09-26 01:57:16 (GMT) |
commit | e02d2930040f993922e9c4449e3d90c8040cfedc (patch) | |
tree | f5aeba5c5a62a0d6839773212f46c511ba8c8b27 /drivers/mmc/host/mvsdio.c | |
parent | 71ef1ea418ee45a4f939d53a02410627b394c336 (diff) | |
download | linux-fsl-qoriq-e02d2930040f993922e9c4449e3d90c8040cfedc.tar.xz |
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>
Diffstat (limited to 'drivers/mmc/host/mvsdio.c')
-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 06c5b0b..a592407 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; } |