diff options
-rw-r--r-- | arch/arm/mach-omap2/board-omap3logic.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/gpmc-smsc911x.c | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index b726943d7c93..a49e6cff55ab 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -147,7 +147,6 @@ static struct omap_smsc911x_platform_data __initdata board_smsc911x_data = { | |||
147 | .cs = OMAP3LOGIC_SMSC911X_CS, | 147 | .cs = OMAP3LOGIC_SMSC911X_CS, |
148 | .gpio_irq = -EINVAL, | 148 | .gpio_irq = -EINVAL, |
149 | .gpio_reset = -EINVAL, | 149 | .gpio_reset = -EINVAL, |
150 | .flags = IORESOURCE_IRQ_LOWLEVEL, | ||
151 | }; | 150 | }; |
152 | 151 | ||
153 | /* TODO/FIXME (comment by Peter Barada, LogicPD): | 152 | /* TODO/FIXME (comment by Peter Barada, LogicPD): |
diff --git a/arch/arm/mach-omap2/gpmc-smsc911x.c b/arch/arm/mach-omap2/gpmc-smsc911x.c index 703f150dd01d..b331f3cd38f1 100644 --- a/arch/arm/mach-omap2/gpmc-smsc911x.c +++ b/arch/arm/mach-omap2/gpmc-smsc911x.c | |||
@@ -30,7 +30,7 @@ static struct resource gpmc_smsc911x_resources[] = { | |||
30 | .flags = IORESOURCE_MEM, | 30 | .flags = IORESOURCE_MEM, |
31 | }, | 31 | }, |
32 | [1] = { | 32 | [1] = { |
33 | .flags = IORESOURCE_IRQ, | 33 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, |
34 | }, | 34 | }, |
35 | }; | 35 | }; |
36 | 36 | ||
@@ -79,8 +79,6 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data) | |||
79 | 79 | ||
80 | gpio_direction_input(gpmc_cfg->gpio_irq); | 80 | gpio_direction_input(gpmc_cfg->gpio_irq); |
81 | gpmc_smsc911x_resources[1].start = gpio_to_irq(gpmc_cfg->gpio_irq); | 81 | gpmc_smsc911x_resources[1].start = gpio_to_irq(gpmc_cfg->gpio_irq); |
82 | gpmc_smsc911x_resources[1].flags |= | ||
83 | (gpmc_cfg->flags & IRQF_TRIGGER_MASK); | ||
84 | 82 | ||
85 | if (gpio_is_valid(gpmc_cfg->gpio_reset)) { | 83 | if (gpio_is_valid(gpmc_cfg->gpio_reset)) { |
86 | ret = gpio_request(gpmc_cfg->gpio_reset, "smsc911x reset"); | 84 | ret = gpio_request(gpmc_cfg->gpio_reset, "smsc911x reset"); |
@@ -96,6 +94,9 @@ void __init gpmc_smsc911x_init(struct omap_smsc911x_platform_data *board_data) | |||
96 | gpio_set_value(gpmc_cfg->gpio_reset, 1); | 94 | gpio_set_value(gpmc_cfg->gpio_reset, 1); |
97 | } | 95 | } |
98 | 96 | ||
97 | if (gpmc_cfg->flags) | ||
98 | gpmc_smsc911x_config.flags = gpmc_cfg->flags; | ||
99 | |||
99 | if (platform_device_register(&gpmc_smsc911x_device) < 0) { | 100 | if (platform_device_register(&gpmc_smsc911x_device) < 0) { |
100 | printk(KERN_ERR "Unable to register smsc911x device\n"); | 101 | printk(KERN_ERR "Unable to register smsc911x device\n"); |
101 | gpio_free(gpmc_cfg->gpio_reset); | 102 | gpio_free(gpmc_cfg->gpio_reset); |