From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Ferre Subject: Re: [PATCH] atmel_lcdfb: unsigned irq_base cannot be negative Date: Tue, 21 Oct 2008 10:46:01 +0200 Message-ID: <48FD96C9.6060204@atmel.com> References: <48FD4F7E.6010708@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48FD4F7E.6010708@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: roel kluin Cc: linux-fbdev-devel@lists.sourceforge.net, Linux Kernel list Hi, roel kluin : > unsigned irq_base cannot be negative Indeed. Thanks for taking this point ! > Signed-off-by: Roel Kluin > --- > 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