]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: fix error check when getting irq
authorHeiko Stuebner <heiko@sntech.de>
Sun, 19 Apr 2015 23:00:53 +0000 (01:00 +0200)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 20 Apr 2015 01:02:31 +0000 (09:02 +0800)
commitf38483159fe5b7b0c5b7fc963516a70191edb71b
tree68738f2926b5c5fc0d6bc7318d52499cc87294d2
parentea4b15336d755616460cd6c9c5de558ec99a243b
drm/rockchip: fix error check when getting irq

platform_get_irq() can return negative error values and we already test for
these. Therefore the variable holding this value should be signed to not
loose possible error values.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-By: Daniel Kurtz <djkurtz@chromium.org>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c