aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/jz4740_fb.c
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-01-21 05:09:23 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-22 14:41:58 -0500
commitbc3bad166ca6b9683e7990a028073860954e67fc (patch)
treeb9ea09818dd34ee2e9720e04fe14d4d6038ae0d7 /drivers/video/jz4740_fb.c
parent148e11349b0c9c7199fd3096254bd3ea16d59a05 (diff)
video: Convert to devm_ioremap_resource()
Convert all uses of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() 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: Thierry Reding <thierry.reding@avionic-design.de> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/jz4740_fb.c')
-rw-r--r--drivers/video/jz4740_fb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/jz4740_fb.c b/drivers/video/jz4740_fb.c
index d999bb5e0485..36979b4131ab 100644
--- a/drivers/video/jz4740_fb.c
+++ b/drivers/video/jz4740_fb.c
@@ -660,9 +660,9 @@ static int jzfb_probe(struct platform_device *pdev)
660 } 660 }
661 661
662 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 662 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
663 jzfb->base = devm_request_and_ioremap(&pdev->dev, mem); 663 jzfb->base = devm_ioremap_resource(&pdev->dev, mem);
664 if (!jzfb->base) { 664 if (IS_ERR(jzfb->base)) {
665 ret = -EBUSY; 665 ret = PTR_ERR(jzfb->base);
666 goto err_framebuffer_release; 666 goto err_framebuffer_release;
667 } 667 }
668 668