Re: linux-next: origin tree build failure
From: Linus Torvalds
Date: Tue Oct 14 2008 - 19:43:41 EST
On Wed, 15 Oct 2008, Stephen Rothwell wrote:
>
> drivers/mfd/wm8350-core.c: In function 'wm8350_device_init':
> drivers/mfd/wm8350-core.c:1220: error: 'NO_IRQ' undeclared (first use in this function)
>
> Caused by commit ebccec0fa4e35dff0c18663a492a65f4dc6cad7a ("mfd: Add
> WM8350 interrupt support").
>
> I applied the following (probably incorrect) patch. Maybe this driver
> needs to be restricted to certain architectures? (NO_IRQ appears to only
> be defined for arm, blackfin, powerpc, mn10300 and parisc)
Grr. Can we please just get rid of that IDIOTIC thing instead?
NO_IRQ was a bad idea to begin with. Let's not add more.
I assume that broken driver is some ARM-specific thing. I certainly don't
want to see NO_IRQ in any general drivers. So instead of having that
NO_IRQ insanity spread any more, I'd much rather see the driver either
fixed to not use it, or just marked ARM-only.
The proper way to test for whether an interrupt is valid or not is to do
if (dev->irq) {
...
and no other. There is no spoon. That NO_IRQ was insane. And architectures
or drivers that still think otherwise should fix themselves.
Linus
--
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/