]> 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)
commit142fca391c033a8225e5b578e7e77d098426a212
tree68738f2926b5c5fc0d6bc7318d52499cc87294d2
parentc6e4e5f4c47960b5b3d9b59fa820bc5ea95bd7b0
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