diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-06 08:46:17 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-09-13 05:38:07 +0200 |
commit | 16e197417de3414af7c183f7f4abfa2c7e37f297 (patch) | |
tree | d1c850cad2dca0854c04601883a58d98b1316394 /drivers/gpu | |
parent | drm/exynos: Remove redundant check in exynos_hdmi.c file (diff) | |
download | linux-16e197417de3414af7c183f7f4abfa2c7e37f297.tar.xz linux-16e197417de3414af7c183f7f4abfa2c7e37f297.zip |
drm/exynos: Remove redundant check in exynos_drm_fimd.c file
devm_request_and_ioremap function checks the validity of the
pointer returned by platform_get_resource. Hence an additional check
in the probe function is not necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index a68d2b313f03..b19cd93e7047 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -831,11 +831,6 @@ static int __devinit fimd_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(dev, "failed to find registers\n"); - ret = -ENOENT; - goto err_clk; - } ctx->regs = devm_request_and_ioremap(&pdev->dev, res); if (!ctx->regs) { |