diff mbox

[1/3] mmc: mvsdio: Convert to devm_ioremap_resource

Message ID 1378968396-18604-1-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat Sept. 12, 2013, 6:46 a.m. UTC
devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource()
instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/mmc/host/mvsdio.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Sachin Kamat Sept. 24, 2013, 12:07 p.m. UTC | #1
On 12 September 2013 12:16, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource()
> instead.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Gentle ping on this series Chris.
Chris Ball Sept. 26, 2013, 1:57 a.m. UTC | #2
Hi Sachin,

On Tue, Sep 24 2013, Sachin Kamat wrote:
> On 12 September 2013 12:16, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> devm_request_and_ioremap() is deprecated. Use devm_ioremap_resource()
>> instead.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>
> Gentle ping on this series Chris.

Thanks, all pushed to mmc-next for 3.13.

- Chris.
diff mbox

Patch

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;
 	}