diff options
Diffstat (limited to 'drivers/memory/tegra30-mc.c')
-rw-r--r-- | drivers/memory/tegra30-mc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c index 0b7ab9332a18..0b975986777d 100644 --- a/drivers/memory/tegra30-mc.c +++ b/drivers/memory/tegra30-mc.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. | 17 | * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <linux/err.h> | ||
20 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
21 | #include <linux/module.h> | 22 | #include <linux/module.h> |
22 | #include <linux/ratelimit.h> | 23 | #include <linux/ratelimit.h> |
@@ -336,9 +337,9 @@ static int tegra30_mc_probe(struct platform_device *pdev) | |||
336 | res = platform_get_resource(pdev, IORESOURCE_MEM, i); | 337 | res = platform_get_resource(pdev, IORESOURCE_MEM, i); |
337 | if (!res) | 338 | if (!res) |
338 | return -ENODEV; | 339 | return -ENODEV; |
339 | mc->regs[i] = devm_request_and_ioremap(&pdev->dev, res); | 340 | mc->regs[i] = devm_ioremap_resource(&pdev->dev, res); |
340 | if (!mc->regs[i]) | 341 | if (IS_ERR(mc->regs[i])) |
341 | return -EBUSY; | 342 | return PTR_ERR(mc->regs[i]); |
342 | } | 343 | } |
343 | 344 | ||
344 | irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 345 | irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |