提交 9b43b56f 编写于 作者: L Laurent Navet 提交者: Greg Kroah-Hartman

staging: imx-drm: use devm_ioremap_resource()

Replace a call to deprecated devm_request_and_ioremap by devm_ioremap_resource.

Found with coccicheck and this semantic patch:
 scripts/coccinelle/api/devm_request_and_ioremap.cocci.
Signed-off-by: NLaurent Navet <laurent.navet@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 79719e64
...@@ -638,11 +638,9 @@ static int imx_tve_probe(struct platform_device *pdev) ...@@ -638,11 +638,9 @@ static int imx_tve_probe(struct platform_device *pdev)
return -ENOENT; return -ENOENT;
} }
base = devm_request_and_ioremap(&pdev->dev, res); base = devm_ioremap_resource(&pdev->dev, res);
if (!base) { if (IS_ERR(base))
dev_err(&pdev->dev, "failed to remap memory region\n"); return PTR_ERR(base);
return -ENOENT;
}
tve_regmap_config.lock_arg = tve; tve_regmap_config.lock_arg = tve;
tve->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "tve", base, tve->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "tve", base,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册