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)
commit3ea68922fc4148abc97557df43d4ba9a136b1c8d
tree68738f2926b5c5fc0d6bc7318d52499cc87294d2
parent625e03461ba51592ac785214b2254af7bd630077
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