diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-06 12:16:16 +0530 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-09-13 12:38:07 +0900 |
commit | 7ba073cdd8b770f990916a7b506d7b31fadb70a5 (patch) | |
tree | 50d8fd3271e1f331df1729d1cd36f4ccae5ea3f9 /drivers/gpu/drm | |
parent | 26df641eac05abe1a3276eea441359b4d1120816 (diff) | |
download | linux-7ba073cdd8b770f990916a7b506d7b31fadb70a5.tar.bz2 |
drm/exynos: Remove redundant check in exynos_hdmi.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/drm')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 409e2ec1207c..bb504cbd7898 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -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) { |