提交 cb30701b 编写于 作者: F Fabio Estevam 提交者: Inki Dae

drm/exynos: decon5433: Remove unnecessary platform_get_resource() error check

devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Cc: Inki Dae <inki.dae@samsung.com>
Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: NAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 35087762
...@@ -744,11 +744,6 @@ static int exynos5433_decon_probe(struct platform_device *pdev) ...@@ -744,11 +744,6 @@ static int exynos5433_decon_probe(struct platform_device *pdev)
} }
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
dev_err(dev, "cannot find IO resource\n");
return -ENXIO;
}
ctx->addr = devm_ioremap_resource(dev, res); ctx->addr = devm_ioremap_resource(dev, res);
if (IS_ERR(ctx->addr)) { if (IS_ERR(ctx->addr)) {
dev_err(dev, "ioremap failed\n"); dev_err(dev, "ioremap failed\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册