diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-15 08:45:29 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-15 20:27:57 -0700 |
commit | 9f27fb8514d0491f1c12052d78d46946f129b8e1 (patch) | |
tree | 770fb1b15ca9b3493406ac8c71113b3943d4b916 /drivers | |
parent | 752ef8b541da2606c5668dcc176e7b16dd68b945 (diff) | |
download | linux-3.10-9f27fb8514d0491f1c12052d78d46946f129b8e1.tar.gz linux-3.10-9f27fb8514d0491f1c12052d78d46946f129b8e1.tar.bz2 linux-3.10-9f27fb8514d0491f1c12052d78d46946f129b8e1.zip |
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 <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/irda/sh_sir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sh_sir.c b/drivers/net/irda/sh_sir.c index 5c5f99d5034..00b38bccd6d 100644 --- a/drivers/net/irda/sh_sir.c +++ b/drivers/net/irda/sh_sir.c @@ -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); |