mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
a1be5d6496
commit
8c6d9d0a01
2 changed files with 44 additions and 7 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue