diff options
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pltfm.c')
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c index 5e1fb1d2c422..41c27b74b003 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c | |||
@@ -10,6 +10,7 @@ | |||
10 | * (at your option) any later version. | 10 | * (at your option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/err.h> | ||
13 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
14 | #include <linux/module.h> | 15 | #include <linux/module.h> |
15 | #include <linux/io.h> | 16 | #include <linux/io.h> |
@@ -46,9 +47,9 @@ int dw_mci_pltfm_register(struct platform_device *pdev, | |||
46 | host->dev = &pdev->dev; | 47 | host->dev = &pdev->dev; |
47 | host->irq_flags = 0; | 48 | host->irq_flags = 0; |
48 | host->pdata = pdev->dev.platform_data; | 49 | host->pdata = pdev->dev.platform_data; |
49 | host->regs = devm_request_and_ioremap(&pdev->dev, regs); | 50 | host->regs = devm_ioremap_resource(&pdev->dev, regs); |
50 | if (!host->regs) | 51 | if (IS_ERR(host->regs)) |
51 | return -ENOMEM; | 52 | return PTR_ERR(host->regs); |
52 | 53 | ||
53 | if (drv_data && drv_data->init) { | 54 | if (drv_data && drv_data->init) { |
54 | ret = drv_data->init(host); | 55 | ret = drv_data->init(host); |