* [PATCH] atmel_lcdfb: unsigned irq_base cannot be negative
@ 2008-10-21 3:41 roel kluin
2008-10-21 8:46 ` Nicolas Ferre
0 siblings, 1 reply; 2+ messages in thread
From: roel kluin @ 2008-10-21 3:41 UTC (permalink / raw)
To: nicolas.ferre, linux-fbdev-devel
unsigned irq_base cannot be negative
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index f8d0a57..f93f57a 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -857,12 +857,12 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
goto stop_clk;
}
- sinfo->irq_base = platform_get_irq(pdev, 0);
- if (sinfo->irq_base < 0) {
+ ret = platform_get_irq(pdev, 0);
+ if (ret < 0) {
dev_err(dev, "unable to get irq\n");
- ret = sinfo->irq_base;
goto stop_clk;
}
+ sinfo->irq_base = ret;
/* Initialize video memory */
map = platform_get_resource(pdev, IORESOURCE_MEM, 1);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] atmel_lcdfb: unsigned irq_base cannot be negative
2008-10-21 3:41 [PATCH] atmel_lcdfb: unsigned irq_base cannot be negative roel kluin
@ 2008-10-21 8:46 ` Nicolas Ferre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2008-10-21 8:46 UTC (permalink / raw)
To: roel kluin; +Cc: linux-fbdev-devel, Linux Kernel list
Hi,
roel kluin :
> unsigned irq_base cannot be negative
Indeed. Thanks for taking this point !
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
> index f8d0a57..f93f57a 100644
> --- a/drivers/video/atmel_lcdfb.c
> +++ b/drivers/video/atmel_lcdfb.c
> @@ -857,12 +857,12 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev)
> goto stop_clk;
> }
>
> - sinfo->irq_base = platform_get_irq(pdev, 0);
> - if (sinfo->irq_base < 0) {
> + ret = platform_get_irq(pdev, 0);
> + if (ret < 0) {
> dev_err(dev, "unable to get irq\n");
> - ret = sinfo->irq_base;
> goto stop_clk;
> }
> + sinfo->irq_base = ret;
I prefer changing the definition of irq_base to plain int.
So the patch becomes obvious:
- unsigned long irq_base;
+ int irq_base;
What do you think of this ?
I repost a patch addressing this issue.
Regards,
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-21 8:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 3:41 [PATCH] atmel_lcdfb: unsigned irq_base cannot be negative roel kluin
2008-10-21 8:46 ` Nicolas Ferre
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).