Re: [PATCH] rtc: bunch of drivers: fix 'no irq' case handing
From: Andrew Morton
Date: Tue Nov 11 2008 - 19:18:11 EST
On Thu, 6 Nov 2008 20:41:11 +0300
Anton Vorontsov <avorontsov@xxxxxxxxxxxxx> wrote:
> This patch fixes bunch of irq checking misuses. Most drivers were getting
> irq via platform_get_irq(), which returns -ENXIO or r->start. Platforms
> may specify r->start = 0 to emphasize 'no irq' case, and drivers should
> handle this correctly.
>
> rtc-cmos.c is special. It is using PNP and platform bindings. Hopefully
> nobody is using PNP IRQ 0 for RTC. So the changes should be safe.
>
> rtc-sh.c is using platform_get_irq, but was storing a result into an
> unsigned type, then was checking for < 0. This is fixed now.
>
> Signed-off-by: Anton Vorontsov <avorontsov@xxxxxxxxxxxxx>
Do we see any reason why this should be pushed into 2.6.28?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/