IP22: Add platform device for Indy volume buttons
Thomas Bogendoerfer
maintainerPATCH v2 1/1 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 <[email protected]>
---
Changes in v2:
- Use the -1 as id when creating platform device, because there is only one button device possible
arch/mips/sgi-ip22/ip22-platform.c | 11 ++++++++ arch/mips/sgi-ip22/ip22-reset.c | 51 +---------------------------------- 2 files changed, 13 insertions(+), 49 deletions(-)
arch/mips/sgi-ip22/ip22-platform.c +11 -0
@@ -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);
arch/mips/sgi-ip22/ip22-reset.c +2 -49
70 lines not on this page · raw message
Quoted 4 lines · Thomas Bogendoerfer
Create platform device for Indy volume buttons and remove button handling from
ip22-reset.cSigned-off-by Thomas Bogendoerfer <[email protected]>
Thanks, queued for 2.6.27.
Ralf