aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-07-15 04:44:54 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-15 23:27:57 -0400
commit752ef8b541da2606c5668dcc176e7b16dd68b945 (patch)
treea6cb659dcb97844b2091e913464089d22fad85e4 /drivers
parentc9741380d32a58d685cfa0aa8d22bdb3bbeeb8aa (diff)
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_irda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c
index 9a828b06a57e..edd5666f0ffb 100644
--- a/drivers/net/irda/sh_irda.c
+++ b/drivers/net/irda/sh_irda.c
@@ -749,7 +749,7 @@ static int __devinit sh_irda_probe(struct platform_device *pdev)
749 struct sh_irda_self *self; 749 struct sh_irda_self *self;
750 struct resource *res; 750 struct resource *res;
751 char clk_name[8]; 751 char clk_name[8];
752 unsigned int irq; 752 int irq;
753 int err = -ENOMEM; 753 int err = -ENOMEM;
754 754
755 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 755 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);