[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.0810141637210.3288@nehalem.linux-foundation.org>
Date: Tue, 14 Oct 2008 16:43:12 -0700 (PDT)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Stephen Rothwell <sfr@...b.auug.org.au>
cc: linux-next@...r.kernel.org,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
LKML <linux-kernel@...r.kernel.org>,
Liam Girdwood <lrg@...mlogic.co.uk>
Subject: Re: linux-next: origin tree build failure
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists