Commit 9f27fb85 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by David S. Miller

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: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 752ef8b5
...@@ -709,7 +709,7 @@ static int __devinit sh_sir_probe(struct platform_device *pdev) ...@@ -709,7 +709,7 @@ static int __devinit sh_sir_probe(struct platform_device *pdev)
struct sh_sir_self *self; struct sh_sir_self *self;
struct resource *res; struct resource *res;
char clk_name[8]; char clk_name[8];
unsigned int irq; int irq;
int err = -ENOMEM; int err = -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment