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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jon Smirl
Date: Tuesday, August 19, 2008 - 1:39 pm

On 8/12/08, Anton Vorontsov <avorontsov@ru.mvista.com> wrote:

Shouldn't this be


instead of


Since NO_IRQ can vary by platform (0 or -1)? Work is underway to get
everyone onto NO_IRQ=0 but I don't know if it is finished yet. It is
much cleaner to use the NO_IRQ define.

In of_i2c.c shouldn't there be an error check?

		info.irq = irq_of_parse_and_map(node, 0);

if (info.irq < NO_IRQ) {report error; continue }




-- 
Jon Smirl
jonsmirl@gmail.com
--
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, Jon Smirl, (Tue Aug 19, 1:39 pm)
Re: [PATCH 1/2] rtc: rtc-ds1374: fix 'no irq' case handling, Anton Vorontsov, (Tue Aug 19, 2:12 pm)