diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-12-18 14:02:25 +0100 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-01-02 00:36:39 +0100 |
commit | cb30701b7482cfe2e03ca6186b7c89043faa1f25 (patch) | |
tree | 6481471638fedd04ccd76faf1ec44dff9e8636d8 /drivers/gpu/drm/exynos | |
parent | Merge tag 'drm-intel-next-2017-12-22' of git://anongit.freedesktop.org/drm/dr... (diff) | |
download | linux-cb30701b7482cfe2e03ca6186b7c89043faa1f25.tar.xz linux-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"); |