diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-01 10:47:10 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-24 05:37:36 -0400 |
commit | 8c6d9d0a01d7b51b4d00365c87b05585a83055dd (patch) | |
tree | 14094152cde19537ded079a79b69ec89de133f72 /arch/arm/mach-rpc | |
parent | a1be5d649699e0eecfe5fc65130954435543cda4 (diff) |
ARM: riscpc: pass IRQ resources into keyboard driver
Rather than including asm/irq.h into the keyboard driver, pass the
IRQ numbers via the platform device instead.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-rpc')
-rw-r--r-- | arch/arm/mach-rpc/riscpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c index 3d44a59fc0df..30baaa8b8a2f 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c | |||
@@ -134,12 +134,19 @@ static struct platform_device iomd_device = { | |||
134 | .resource = iomd_resources, | 134 | .resource = iomd_resources, |
135 | }; | 135 | }; |
136 | 136 | ||
137 | static struct resource iomd_kart_resources[] = { | ||
138 | DEFINE_RES_IRQ(IRQ_KEYBOARDRX), | ||
139 | DEFINE_RES_IRQ(IRQ_KEYBOARDTX), | ||
140 | }; | ||
141 | |||
137 | static struct platform_device kbd_device = { | 142 | static struct platform_device kbd_device = { |
138 | .name = "kart", | 143 | .name = "kart", |
139 | .id = -1, | 144 | .id = -1, |
140 | .dev = { | 145 | .dev = { |
141 | .parent = &iomd_device.dev, | 146 | .parent = &iomd_device.dev, |
142 | }, | 147 | }, |
148 | .num_resources = ARRAY_SIZE(iomd_kart_resources), | ||
149 | .resource = iomd_kart_resources, | ||
143 | }; | 150 | }; |
144 | 151 | ||
145 | static struct plat_serial8250_port serial_platform_data[] = { | 152 | static struct plat_serial8250_port serial_platform_data[] = { |