Merge tag 'mmc-updates-for-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[~shefty/rdma-dev.git] / drivers / mmc / host / sdhci-s3c.c
index b16dae0..7363efe 100644 (file)
@@ -651,10 +651,9 @@ static int sdhci_s3c_probe(struct platform_device *pdev)
 #endif
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 #endif
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       host->ioaddr = devm_request_and_ioremap(&pdev->dev, res);
-       if (!host->ioaddr) {
-               dev_err(dev, "failed to map registers\n");
-               ret = -ENXIO;
+       host->ioaddr = devm_ioremap_resource(&pdev->dev, res);
+       if (IS_ERR(host->ioaddr)) {
+               ret = PTR_ERR(host->ioaddr);
                goto err_req_regs;
        }
 
                goto err_req_regs;
        }