From: Thomas Bogendoerfer Date: Wed, 16 Jul 2008 13:18:58 +0000 (+0200) Subject: [MIPS] IP32: Use common SGI button driver X-Git-Tag: v2.6.27-rc1~967^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=36a0a3cd45b49ceff78ac28efef1cbeec413d8c2;p=linux-2.6-omap-h63xx.git [MIPS] IP32: Use common SGI button driver Use the Indy/O2 button driver. Signed-off-by: Thomas Bogendoerfer Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/sgi-ip32/ip32-platform.c b/arch/mips/sgi-ip32/ip32-platform.c index 2ee401ba0b2..3d63721e0e8 100644 --- a/arch/mips/sgi-ip32/ip32-platform.c +++ b/arch/mips/sgi-ip32/ip32-platform.c @@ -85,18 +85,7 @@ device_initcall(sgio2audio_devinit); static __init int sgio2btns_devinit(void) { - struct platform_device *pd; - int ret; - - pd = platform_device_alloc("sgio2btns", -1); - if (!pd) - return -ENOMEM; - - ret = platform_device_add(pd); - if (ret) - platform_device_put(pd); - - return ret; + return IS_ERR(platform_device_register_simple("sgibtns", -1, NULL, 0)); } device_initcall(sgio2btns_devinit);