diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-12-18 11:02:25 -0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-01-02 08:36:39 +0900 |
commit | cb30701b7482cfe2e03ca6186b7c89043faa1f25 (patch) | |
tree | 6481471638fedd04ccd76faf1ec44dff9e8636d8 /drivers/gpu/drm/exynos | |
parent | 350877626faba5d60cbb8cef2bdeb524212c780b (diff) | |
download | linux-stable-cb30701b7482cfe2e03ca6186b7c89043faa1f25.tar.gz linux-stable-cb30701b7482cfe2e03ca6186b7c89043faa1f25.tar.bz2 linux-stable-cb30701b7482cfe2e03ca6186b7c89043faa1f25.zip |
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: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 6be5b53c3b27..1d509a815d68 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -744,11 +744,6 @@ static int exynos5433_decon_probe(struct platform_device *pdev) } 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); if (IS_ERR(ctx->addr)) { dev_err(dev, "ioremap failed\n"); |