* [PATCH 3/8] drivers: irda: fix sign bug
@ 2010-07-15 18:44 Kulikov Vasiliy
2010-07-16 3:28 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Kulikov Vasiliy @ 2010-07-15 18:44 UTC (permalink / raw)
To: kernel-janitors; +Cc: Samuel Ortiz, David S. Miller, Kuninori Morimoto, netdev
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>
---
drivers/net/irda/sh_irda.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c
index 9a828b0..edd5666 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)
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);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/8] drivers: irda: fix sign bug
2010-07-15 18:44 [PATCH 3/8] drivers: irda: fix sign bug Kulikov Vasiliy
@ 2010-07-16 3:28 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-07-16 3:28 UTC (permalink / raw)
To: segooon; +Cc: kernel-janitors, samuel, kuninori.morimoto.gx, netdev
From: Kulikov Vasiliy <segooon@gmail.com>
Date: Thu, 15 Jul 2010 22:44:54 +0400
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-16 3:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-15 18:44 [PATCH 3/8] drivers: irda: fix sign bug Kulikov Vasiliy
2010-07-16 3:28 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).