diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2008-07-11 23:03:03 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-07-15 18:44:37 +0100 |
commit | b03d7b18fd783f39e31560d568e7db954f3080af (patch) | |
tree | 4b3e0afaeab63b704701baec6fbcbd931c30a1b7 /arch/mips/sgi-ip22/ip22-platform.c | |
parent | efff4ae259b8f750ea426d3084007f85c0a15a85 (diff) | |
download | lwn-b03d7b18fd783f39e31560d568e7db954f3080af.tar.gz lwn-b03d7b18fd783f39e31560d568e7db954f3080af.zip |
[MIPS] IP22: Add platform device for Indy volume buttons
Create platform device for Indy volume buttons and remove button
handling from ip22-reset.c
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sgi-ip22/ip22-platform.c')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-platform.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c index d93d07a8c317..fc6df96305ed 100644 --- a/arch/mips/sgi-ip22/ip22-platform.c +++ b/arch/mips/sgi-ip22/ip22-platform.c @@ -182,3 +182,14 @@ static int __init sgi_hal2_devinit(void) } device_initcall(sgi_hal2_devinit); + +static int __init sgi_button_devinit(void) +{ + if (ip22_is_fullhouse()) + return 0; /* full house has no volume buttons */ + + return IS_ERR(platform_device_register_simple("sgiindybtns", + -1, NULL, 0)); +} + +device_initcall(sgi_button_devinit); |