From: Dan Carpenter Date: Thu, 7 Nov 2013 07:52:00 +0000 (+0300) Subject: dmaengine: s3c24xx-dma: make phy->irq signed for error handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f83f502290e75b927de65b2e26f56c2d4736fac;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git dmaengine: s3c24xx-dma: make phy->irq signed for error handling There is a bug in s3c24xx_dma_probe() where we do: phy->irq = platform_get_irq(pdev, i); if (phy->irq < 0) { The problem is that "phy->irq" is unsigned so the error handling doesn't work. I have changed it to signed. Signed-off-by: Dan Carpenter Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index 4eddedb6eb7d..b209a0f17344 100644 --- a/drivers/dma/s3c24xx-dma.c +++ b/drivers/dma/s3c24xx-dma.c @@ -192,7 +192,7 @@ struct s3c24xx_dma_phy { unsigned int id; bool valid; void __iomem *base; - unsigned int irq; + int irq; struct clk *clk; spinlock_t lock; struct s3c24xx_dma_chan *serving;