drivers: irda: fix sign bug
authorKulikov Vasiliy <segooon@gmail.com>
Thu, 15 Jul 2010 08:45:29 +0000 (08:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2010 03:27:57 +0000 (20:27 -0700)
platform_get_irq_byname() can return negative results, it is not seen to
unsigned irq. Make it signed.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/sh_sir.c

index 5c5f99d50341d5e981225d14fa3951fd59a3b596..00b38bccd6d0fd51f19cfe383f71a1f5952d6a43 100644 (file)
@@ -709,7 +709,7 @@ static int __devinit sh_sir_probe(struct platform_device *pdev)
        struct sh_sir_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);