Skip to content

Commit

Permalink
[MIPS] IP32: Use common SGI button driver
Browse files Browse the repository at this point in the history
Use the Indy/O2 button driver.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
tsbogend authored and ralfbaechle committed Jul 20, 2008
1 parent 5a334fa commit 36a0a3c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions arch/mips/sgi-ip32/ip32-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 36a0a3c

Please sign in to comment.