On Fri, 13 Jan 2012, Rob Herring wrote:
On 01/13/2012 10:43 AM, Russell King - ARM Linux wrote:
quoted
On Fri, Jan 13, 2012 at 10:34:02AM -0600, Rob Herring wrote:
quoted
From: Rob Herring <redacted>
Since asm/irq.h may not include mach/irqs.h, include mach/irqs.h directly.
Rather than doing this, we should be eliminating the need for these
old drivers to include mach/irqs.h at all.
Adding the resources to the platform device, and then using at least
the IRQ resource(s) would be a definite step forward (and a relatively
easy one to do.)
Well, this has just happened in 3.3. So I can now drop this one I think.
Another problem that resources solve (and your original patch didn't
make it any better nor worse) has to do with include file search paths.
Once we start building more than one SOC in the kernel, we won't be able
to support the inclusion of <mach/whatever.h> from driver code anymore
since this could refer to more than one instances of
arch/arm/mach-*/include/mach/whatever.h.
Nicolas