Skip to contentSkip to conversation

rtc: jz4740: signedness bug

PATCH In review Dan Carpenter 2 participants 2 messages Nov 13, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: jz4740: signedness bug

platform_get_irq() can return negatives so the rtc->irq should be signed to handle it.

drivers/rtc/rtc-jz4740.c +1 -1
index 2e16f72..cfcd2da 100644
@@ -42,7 +42,7 @@ struct jz4740_rtc {
 
 	struct rtc_device *rtc;
 
-	unsigned int irq;
+	int irq;
 
 	spinlock_t lock;
 };