drm/rockchip: make irq variable signed

A patch from »MAINTAINERS: add entry for Rockchip drm drivers« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Fri, 17 Apr 2015 22:08:14 +0200

Commit-Message

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 error values. Reported-by: David Binderman <dcb314@...> Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Statistics

  • 1 lines added
  • 1 lines removed

Changes

----------------- drivers/gpu/drm/rockchip/rockchip_drm_vop.c ------------------
index ccb0ce0..bde1c1e 100644
@@ -104,7 +104,7 @@ struct vop {
/* lock vop irq reg */
spinlock_t irq_lock;
- unsigned int irq;
+ int irq;
/* vop AHP clk */
struct clk *hclk;
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...