Commit 2def2516 authored by Mark Brown's avatar Mark Brown

ASoC: tegra20-ac97: Convert to devm_ioremap_resource()

Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent cfe68642
...@@ -341,18 +341,10 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ...@@ -341,18 +341,10 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
goto err_clk_put; goto err_clk_put;
} }
memregion = devm_request_mem_region(&pdev->dev, mem->start, regs = devm_ioremap_resource(&pdev->dev, mem);
resource_size(mem), DRV_NAME); if (IS_ERR(regs)) {
if (!memregion) { ret = PTR_ERR(regs);
dev_err(&pdev->dev, "Memory region already claimed\n"); dev_err(&pdev->dev, "ioremap failed: %d\n", ret);
ret = -EBUSY;
goto err_clk_put;
}
regs = devm_ioremap(&pdev->dev, mem->start, resource_size(mem));
if (!regs) {
dev_err(&pdev->dev, "ioremap failed\n");
ret = -ENOMEM;
goto err_clk_put; goto err_clk_put;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment