aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/exynos/exynos_mipi_dsi.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-04-29 18:05:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 18:54:26 -0400
commit6637eca322e912bf4e272ab33447bdafea2658e8 (patch)
tree649cf92413725421643d1699419468909b79420a /drivers/video/exynos/exynos_mipi_dsi.c
parent68a2d20b79b105f02dcbc52c211d7e62f98996b7 (diff)
drivers/video/exynos/exynos_mipi_dsi.c: convert to devm_ioremap_resource()
Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages; so all explicit error messages can be removed from the failure code paths. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Donghwa Lee <dh09.lee@samsung.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/exynos/exynos_mipi_dsi.c')
-rw-r--r--drivers/video/exynos/exynos_mipi_dsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c
index 3dd43ca2b95f..32e540600f99 100644
--- a/drivers/video/exynos/exynos_mipi_dsi.c
+++ b/drivers/video/exynos/exynos_mipi_dsi.c
@@ -32,6 +32,7 @@
32#include <linux/notifier.h> 32#include <linux/notifier.h>
33#include <linux/regulator/consumer.h> 33#include <linux/regulator/consumer.h>
34#include <linux/pm_runtime.h> 34#include <linux/pm_runtime.h>
35#include <linux/err.h>
35 36
36#include <video/exynos_mipi_dsim.h> 37#include <video/exynos_mipi_dsim.h>
37 38
@@ -382,10 +383,9 @@ static int exynos_mipi_dsi_probe(struct platform_device *pdev)
382 383
383 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 384 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
384 385
385 dsim->reg_base = devm_request_and_ioremap(&pdev->dev, res); 386 dsim->reg_base = devm_ioremap_resource(&pdev->dev, res);
386 if (!dsim->reg_base) { 387 if (IS_ERR(dsim->reg_base)) {
387 dev_err(&pdev->dev, "failed to remap io region\n"); 388 ret = PTR_ERR(dsim->reg_base);
388 ret = -ENOMEM;
389 goto error; 389 goto error;
390 } 390 }
391 391