linux-kernel-test/arch/sh/boards
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
..
cayman sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
dreamcast sh: use declared coherent memory for dreamcast pci ethernet adapter 2008-01-28 13:19:04 +09:00
hp6xx sh: hp6xx: Fix up hp6xx_apm build failure. 2008-03-06 13:48:08 +09:00
landisk Rename: linux/pata_platform.h to linux/ata_platform.h 2008-02-06 06:54:17 -05:00
lboxre2 Rename: linux/pata_platform.h to linux/ata_platform.h 2008-02-06 06:54:17 -05:00
magicpanelr2 sh: Magic Panel MTD mapping update. 2007-09-21 15:27:35 +09:00
renesas [NET] smc91x: remove "irq_flags" from "struct smc91x_platdata" 2008-07-12 21:52:40 +01:00
se sh: update smc91x platform data for se7206. 2008-05-09 14:13:17 +09:00
sh03 sh: Fix up heartbeat build and resource size. 2007-09-21 11:57:51 +09:00
shmin sh: intc - remove redundant irq code for shmin 2007-09-21 11:57:47 +09:00
snapgear sh: Kill off broken snapgear ds1302 code. 2007-11-08 11:24:33 +09:00
superh/microdev sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00
titan sh: intc - remove redundant irq code for sh03, snapgear and titan 2007-09-21 11:57:47 +09:00