diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-05-18 11:04:45 +0300 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-05-25 08:47:40 +0300 |
commit | 19832055e2bf5e67f506bac62e4e07326fb545b7 (patch) | |
tree | 0546773e07eb7b09f4d83f06a510c870d6c01727 /drivers/gpu/drm | |
parent | 12678199c77d196ee23ca2cde4318b6a0e343687 (diff) | |
download | linux-19832055e2bf5e67f506bac62e4e07326fb545b7.tar.xz |
drm/exynos: fimc: signedness bug in fimc_setup_clocks()
"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 <dan.carpenter@oracle.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c index 4dfbfc7f3b84..5ce84025d1cb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c @@ -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; |