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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
148e11349b
commit
bc3bad166c
@@ -1421,10 +1421,9 @@ static int s3c_fb_probe(struct platform_device *pdev)
|
||||
pm_runtime_enable(sfb->dev);
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
sfb->regs = devm_request_and_ioremap(dev, res);
|
||||
if (!sfb->regs) {
|
||||
dev_err(dev, "failed to map registers\n");
|
||||
ret = -ENXIO;
|
||||
sfb->regs = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(sfb->regs)) {
|
||||
ret = PTR_ERR(sfb->regs);
|
||||
goto err_lcd_clk;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user