[media] media: 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>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Thierry Reding
2013-01-21 06:09:07 -03:00
committed by Mauro Carvalho Chehab
parent 7b34be71db
commit f23999eccb
10 changed files with 33 additions and 49 deletions

View File

@@ -941,9 +941,9 @@ static int emmaprp_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, pcdev);
pcdev->base_emma = devm_request_and_ioremap(&pdev->dev, res_emma);
if (!pcdev->base_emma) {
ret = -ENXIO;
pcdev->base_emma = devm_ioremap_resource(&pdev->dev, res_emma);
if (IS_ERR(pcdev->base_emma)) {
ret = PTR_ERR(pcdev->base_emma);
goto rel_vdev;
}