Skip to content

Commit

Permalink
drivers: irda: fix sign bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and David S. Miller committed Jul 16, 2010
1 parent c974138 commit 752ef8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/sh_irda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 752ef8b

Please sign in to comment.