Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] IP32: Use common SGI button driver

Use the Indy/O2 button driver.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Thomas Bogendoerfer and committed by
Ralf Baechle
36a0a3cd 5a334fa9

+1 -12
+1 -12
arch/mips/sgi-ip32/ip32-platform.c
··· 85 85 86 86 static __init int sgio2btns_devinit(void) 87 87 { 88 - struct platform_device *pd; 89 - int ret; 90 - 91 - pd = platform_device_alloc("sgio2btns", -1); 92 - if (!pd) 93 - return -ENOMEM; 94 - 95 - ret = platform_device_add(pd); 96 - if (ret) 97 - platform_device_put(pd); 98 - 99 - return ret; 88 + return IS_ERR(platform_device_register_simple("sgibtns", -1, NULL, 0)); 100 89 } 101 90 102 91 device_initcall(sgio2btns_devinit);