summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-12-24 09:33:47 +0100
committerInki Dae <inki.dae@samsung.com>2013-01-04 07:54:35 +0100
commitdf257a8db416cdae87fe0e31287a3df86dd8ba5a (patch)
tree0ac92a8f0e303e3788e05ec95fa1ee172a29aabd /drivers/gpu/drm/exynos
parentdrm/exynos: Remove unnecessary devm_* freeing APIs in exynos_drm_rotator.c (diff)
downloadlinux-df257a8db416cdae87fe0e31287a3df86dd8ba5a.tar.xz
linux-df257a8db416cdae87fe0e31287a3df86dd8ba5a.zip
drm/exynos: Remove redundant NULL check in exynos_drm_rotator.c
devm_request_and_ioremap API checks for NULL. Hence explicit NULL check is not necessary. Saves some code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_rotator.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
index 9634cf17cf52..77bd6fd84e1c 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
@@ -656,11 +656,6 @@ static int __devinit rotator_probe(struct platform_device *pdev)
platform_get_device_id(pdev)->driver_data;
rot->regs_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!rot->regs_res) {
- dev_err(dev, "failed to find registers\n");
- return -ENOENT;
- }
-
rot->regs = devm_request_and_ioremap(dev, rot->regs_res);
if (!rot->regs) {
dev_err(dev, "failed to map register\n");