Skip to content

Commit

Permalink
drm/exynos: fimc: signedness bug in fimc_setup_clocks()
Browse files Browse the repository at this point in the history
"id" needs to be signed for the error handling to work.

Fixes: 7a2d5c7 ("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>
  • Loading branch information
Dan Carpenter authored and Inki Dae committed May 25, 2018
1 parent 1267819 commit 1983205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_fimc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ static int fimc_setup_clocks(struct fimc_context *ctx)

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;
Expand Down

0 comments on commit 1983205

Please sign in to comment.