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>
This commit is contained in:
@@ -134,12 +134,19 @@ static struct platform_device iomd_device = {
|
||||
.resource = iomd_resources,
|
||||
};
|
||||
|
||||
static struct resource iomd_kart_resources[] = {
|
||||
DEFINE_RES_IRQ(IRQ_KEYBOARDRX),
|
||||
DEFINE_RES_IRQ(IRQ_KEYBOARDTX),
|
||||
};
|
||||
|
||||
static struct platform_device kbd_device = {
|
||||
.name = "kart",
|
||||
.id = -1,
|
||||
.dev = {
|
||||
.parent = &iomd_device.dev,
|
||||
},
|
||||
.num_resources = ARRAY_SIZE(iomd_kart_resources),
|
||||
.resource = iomd_kart_resources,
|
||||
};
|
||||
|
||||
static struct plat_serial8250_port serial_platform_data[] = {
|
||||
|
Reference in New Issue
Block a user