]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/exynos: Remove redundant check in exynos_hdmi.c file
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 Aug 2012 06:46:16 +0000 (12:16 +0530)
committerInki Dae <inki.dae@samsung.com>
Thu, 13 Sep 2012 03:38:07 +0000 (12:38 +0900)
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>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 409e2ec1207c3ddbe4ecae65f9fae1498fcd6410..bb504cbd7898dad1363397b085567decd5e6505c 100644 (file)
@@ -2312,11 +2312,6 @@ static int __devinit hdmi_probe(struct platform_device *pdev)
        }
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (!res) {
-               DRM_ERROR("failed to find registers\n");
-               ret = -ENOENT;
-               goto err_resource;
-       }
 
        hdata->regs = devm_request_and_ioremap(&pdev->dev, res);
        if (!hdata->regs) {