diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-scb9328.c')
-rw-r--r-- | arch/arm/mach-imx/mach-scb9328.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-scb9328.c b/arch/arm/mach-imx/mach-scb9328.c index cb9ceae2f64..67ff38e9a3c 100644 --- a/arch/arm/mach-imx/mach-scb9328.c +++ b/arch/arm/mach-imx/mach-scb9328.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/mtd/physmap.h> | 14 | #include <linux/mtd/physmap.h> |
15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
16 | #include <linux/dm9000.h> | 16 | #include <linux/dm9000.h> |
17 | #include <linux/gpio.h> | ||
17 | 18 | ||
18 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
19 | #include <asm/mach/arch.h> | 20 | #include <asm/mach/arch.h> |
@@ -21,7 +22,6 @@ | |||
21 | 22 | ||
22 | #include <mach/common.h> | 23 | #include <mach/common.h> |
23 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
24 | #include <mach/irqs.h> | ||
25 | #include <mach/iomux-mx1.h> | 25 | #include <mach/iomux-mx1.h> |
26 | 26 | ||
27 | #include "devices-imx1.h" | 27 | #include "devices-imx1.h" |
@@ -78,8 +78,7 @@ static struct resource dm9000x_resources[] = { | |||
78 | .end = MX1_CS5_PHYS + 5, | 78 | .end = MX1_CS5_PHYS + 5, |
79 | .flags = IORESOURCE_MEM, /* data access */ | 79 | .flags = IORESOURCE_MEM, /* data access */ |
80 | }, { | 80 | }, { |
81 | .start = IRQ_GPIOC(3), | 81 | /* irq number is run-time assigned */ |
82 | .end = IRQ_GPIOC(3), | ||
83 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, | 82 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, |
84 | }, | 83 | }, |
85 | }; | 84 | }; |
@@ -123,6 +122,8 @@ static void __init scb9328_init(void) | |||
123 | imx1_add_imx_uart0(&uart_pdata); | 122 | imx1_add_imx_uart0(&uart_pdata); |
124 | 123 | ||
125 | printk(KERN_INFO"Scb9328: Adding devices\n"); | 124 | printk(KERN_INFO"Scb9328: Adding devices\n"); |
125 | dm9000x_resources[2].start = gpio_to_irq(IMX_GPIO_NR(3, 3)); | ||
126 | dm9000x_resources[2].end = gpio_to_irq(IMX_GPIO_NR(3, 3)); | ||
126 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 127 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
127 | } | 128 | } |
128 | 129 | ||