From: Kulikov Vasiliy Date: Thu, 15 Jul 2010 08:44:54 +0000 (+0000) Subject: drivers: irda: fix sign bug X-Git-Tag: MMI-PSA29.97-13-9~23092^2~204 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=752ef8b541da2606c5668dcc176e7b16dd68b945;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drivers: irda: fix sign bug platform_get_irq_byname() can return negative results, it is not seen to unsigned irq. Make it signed. Signed-off-by: Kulikov Vasiliy Signed-off-by: David S. Miller --- diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c index 9a828b06a57e..edd5666f0ffb 100644 --- a/drivers/net/irda/sh_irda.c +++ b/drivers/net/irda/sh_irda.c @@ -749,7 +749,7 @@ static int __devinit sh_irda_probe(struct platform_device *pdev) struct sh_irda_self *self; struct resource *res; char clk_name[8]; - unsigned int irq; + int irq; int err = -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0);