]> Git Repo - linux.git/commitdiff
drm/exynos: fimc: signedness bug in fimc_setup_clocks()
authorDan Carpenter <[email protected]>
Fri, 18 May 2018 08:04:45 +0000 (01:04 -0700)
committerInki Dae <[email protected]>
Fri, 25 May 2018 05:47:40 +0000 (14:47 +0900)
"id" needs to be signed for the error handling to work.

Fixes: 7a2d5c77c558 ("drm/exynos: fimc: Convert driver to IPP v2 core API")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
drivers/gpu/drm/exynos/exynos_drm_fimc.c

index 4dfbfc7f3b8423bee32b8c152c70c75b88ffdbb0..5ce84025d1cb80e577d47dc1f826fa5acb3e2bf4 100644 (file)
@@ -1200,7 +1200,7 @@ e_clk_free:
 
 int exynos_drm_check_fimc_device(struct device *dev)
 {
-       unsigned int id = of_alias_get_id(dev->of_node, "fimc");
+       int id = of_alias_get_id(dev->of_node, "fimc");
 
        if (id >= 0 && (BIT(id) & fimc_mask))
                return 0;
This page took 0.056708 seconds and 4 git commands to generate.