From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by ozlabs.org (Postfix) with ESMTP id 061CADDFD1 for ; Wed, 20 Aug 2008 07:23:42 +1000 (EST) Received: by py-out-1112.google.com with SMTP id a29so92538pyi.27 for ; Tue, 19 Aug 2008 14:23:40 -0700 (PDT) Message-ID: <9e4733910808191423u34946955lc85caa6b2217b390@mail.gmail.com> Date: Tue, 19 Aug 2008 17:23:40 -0400 From: "Jon Smirl" To: "Alan Cox" Subject: Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling In-Reply-To: <20080819212937.01dfd024@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <20080812161733.GA32164@oksana.dev.rtsoft.ru> <9e4733910808191339s28a05f90pef57961e8d24fbdb@mail.gmail.com> <20080819212937.01dfd024@lxorguk.ukuu.org.uk> Cc: Alessandro Zummo , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Andrew Morton List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 8/19/08, Alan Cox wrote: > > Shouldn't this be > > > > > - if (client->irq <= NO_IRQ) > > > > instead of > > > NO_IRQ is obsolete. client->irq != is the test and IRQ numbers are > unsigned. I don't know the status of these platforms.... asm-blackfin/irq.h:#define NO_IRQ ((unsigned int)(-1)) asm-mn10300/irq.h:#define NO_IRQ INT_MAX asm-parisc/irq.h:#define NO_IRQ (-1) -- Jon Smirl jonsmirl@gmail.com