mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
c9741380d3
commit
752ef8b541
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue