Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Vorontsov
Date: Tuesday, August 19, 2008 - 2:12 pm

On Tue, Aug 19, 2008 at 04:39:09PM -0400, Jon Smirl wrote:

First of all, NO_IRQ is not defined for every architecture. You can't
use it for truly cross-platform drivers.

Secondly, "<= 0" will work for both NO_IRQ == 0 and NO_IRQ == -1,
since client->irq is signed type.

As for false positives, I don't believe that there is any platform
that use IRQ0 for external interrupts.

[...]

irq_of_parse_and_map() returns unsigned type, plus it is defined
only for PowerPC, and for PowerPC NO_IRQ is always 0.

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling, Anton Vorontsov, (Tue Aug 12, 9:17 am)
Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling, Peter Korsgaard, (Tue Aug 19, 1:01 pm)
Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling, Anton Vorontsov, (Tue Aug 19, 2:12 pm)