diff options
-rw-r--r-- | drivers/memory/emif.c | 8 | ||||
-rw-r--r-- | drivers/memory/tegra20-mc.c | 7 | ||||
-rw-r--r-- | drivers/memory/tegra30-mc.c | 7 |
3 files changed, 11 insertions, 11 deletions
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 06d31c99e6ac..df0873694858 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c | |||
@@ -10,6 +10,7 @@ | |||
10 | * it under the terms of the GNU General Public License version 2 as | 10 | * it under the terms of the GNU General Public License version 2 as |
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | #include <linux/err.h> | ||
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
14 | #include <linux/reboot.h> | 15 | #include <linux/reboot.h> |
15 | #include <linux/platform_data/emif_plat.h> | 16 | #include <linux/platform_data/emif_plat.h> |
@@ -1468,12 +1469,9 @@ static int __init_or_module emif_probe(struct platform_device *pdev) | |||
1468 | goto error; | 1469 | goto error; |
1469 | } | 1470 | } |
1470 | 1471 | ||
1471 | emif->base = devm_request_and_ioremap(emif->dev, res); | 1472 | emif->base = devm_ioremap_resource(emif->dev, res); |
1472 | if (!emif->base) { | 1473 | if (IS_ERR(emif->base)) |
1473 | dev_err(emif->dev, "%s: devm_request_and_ioremap() failed\n", | ||
1474 | __func__); | ||
1475 | goto error; | 1474 | goto error; |
1476 | } | ||
1477 | 1475 | ||
1478 | irq = platform_get_irq(pdev, 0); | 1476 | irq = platform_get_irq(pdev, 0); |
1479 | if (irq < 0) { | 1477 | if (irq < 0) { |
diff --git a/drivers/memory/tegra20-mc.c b/drivers/memory/tegra20-mc.c index 186f27d9e5f1..2ca5f2814f4a 100644 --- a/drivers/memory/tegra20-mc.c +++ b/drivers/memory/tegra20-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> |
@@ -216,9 +217,9 @@ static int tegra20_mc_probe(struct platform_device *pdev) | |||
216 | res = platform_get_resource(pdev, IORESOURCE_MEM, i); | 217 | res = platform_get_resource(pdev, IORESOURCE_MEM, i); |
217 | if (!res) | 218 | if (!res) |
218 | return -ENODEV; | 219 | return -ENODEV; |
219 | mc->regs[i] = devm_request_and_ioremap(&pdev->dev, res); | 220 | mc->regs[i] = devm_ioremap_resource(&pdev->dev, res); |
220 | if (!mc->regs[i]) | 221 | if (IS_ERR(mc->regs[i])) |
221 | return -EBUSY; | 222 | return PTR_ERR(mc->regs[i]); |
222 | } | 223 | } |
223 | 224 | ||
224 | irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 225 | irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
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); |