diff options
author | Laurent Navet <laurent.navet@gmail.com> | 2013-05-02 15:41:41 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-17 02:42:30 +0400 |
commit | 9b43b56f7950967771789a663bc2946cf2ce5087 (patch) | |
tree | de31a5ae95f2eccd45e14e84db1bcb4de50d2934 /drivers/staging/imx-drm | |
parent | 79719e644162bffd59df99404a7aef7b726c3f83 (diff) | |
download | linux-9b43b56f7950967771789a663bc2946cf2ce5087.tar.xz |
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: Laurent Navet <laurent.navet@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/imx-drm')
-rw-r--r-- | drivers/staging/imx-drm/imx-tve.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/imx-drm/imx-tve.c b/drivers/staging/imx-drm/imx-tve.c index ac1634464407..a6efa8f65828 100644 --- a/drivers/staging/imx-drm/imx-tve.c +++ b/drivers/staging/imx-drm/imx-tve.c @@ -638,11 +638,9 @@ static int imx_tve_probe(struct platform_device *pdev) return -ENOENT; } - base = devm_request_and_ioremap(&pdev->dev, res); - if (!base) { - dev_err(&pdev->dev, "failed to remap memory region\n"); - return -ENOENT; - } + base = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(base)) + return PTR_ERR(base); tve_regmap_config.lock_arg = tve; tve->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "tve", base, |