kernel_optimize_test/arch/sh/boards/renesas
Eric Miao d280eadc4f [NET] smc91x: remove "irq_flags" from "struct smc91x_platdata"
IRQ trigger type can be specified in the IRQ resource definition by
IORESOURCE_IRQ_*, we need only one way to specify this.

This also fixes the following small issue:

To allow dynamic support for multiple platforms, when those relevant
macros are not defined for one specific platform, the default case
will be:

	- SMC_DYNAMIC_BUS_CONFIG defined
	- and SMC_IRQ_FLAGS = IRQF_TRIGGER_RISING

While if "irq_flags" is missing when defining the smc91x_platdata,
usually as follows:

  static struct smc91x_platdata xxxx_smc91x_data = {
	.flags	= SMC91X_USE_XXBIT,
  };

The lp->cfg.irq_flags will always be overriden by the above structure
(due to a memcpy), thus rendering lp->cfg.irq_flags to be "0" always.
(regardless of the default SMC_IRQ_FLAGS or IORESOURCE_IRQ_* flags)

Fixes this by forcing to use IORESOURCE_IRQ_* flags if present, and
make the only user of smc91x_platdata.irq_flags (renesas/migor) to
use IORESOURCE_IRQ_*.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2008-07-12 21:52:40 +01:00
..
edosk7705 sh: Kill off machvec aliases. 2007-06-08 02:43:39 +00:00
migor [NET] smc91x: remove "irq_flags" from "struct smc91x_platdata" 2008-07-12 21:52:40 +01:00
r7780rp sh: r7780rp: Kill off unneded ifdefs for irq setup. 2008-05-08 19:51:44 +09:00
rts7751r2d sh: use sm501 8250 mfd support on r2d boards 2008-05-23 11:53:24 +09:00
sdk7780 sh: Kill off bogus SH_SDK7780_STANDALONE symbol. 2008-02-14 14:22:11 +09:00
systemh sh: Kill off machvec aliases. 2007-06-08 02:43:39 +00:00
x3proto sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00