Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

ARM: at91: fix at91sam9261ek Ethernet dm9000 irq

You need to setup the dm9000 irq via gpio_to_irq() since
d0fbda9add (ARM: at91/gpio: drop PIN_BASE).

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: stable <stable@vger.kernel.org> [3.2+]

authored by

Jean-Christophe PLAGNIOL-VILLARD and committed by
Nicolas Ferre
ee9dd763 bf66b0d1

+3 -2
+3 -2
arch/arm/mach-at91/board-sam9261ek.c
··· 85 85 .flags = IORESOURCE_MEM 86 86 }, 87 87 [2] = { 88 - .start = AT91_PIN_PC11, 89 - .end = AT91_PIN_PC11, 90 88 .flags = IORESOURCE_IRQ 91 89 | IORESOURCE_IRQ_LOWEDGE | IORESOURCE_IRQ_HIGHEDGE, 92 90 } ··· 128 130 129 131 static void __init ek_add_device_dm9000(void) 130 132 { 133 + struct resource *r = &dm9000_resource[2]; 134 + 131 135 /* Configure chip-select 2 (DM9000) */ 132 136 sam9_smc_configure(0, 2, &dm9000_smc_config); 133 137 ··· 139 139 /* Configure Interrupt pin as input, no pull-up */ 140 140 at91_set_gpio_input(AT91_PIN_PC11, 0); 141 141 142 + r->start = r->end = gpio_to_irq(AT91_PIN_PC11); 142 143 platform_device_register(&dm9000_device); 143 144 } 144 145 #else