| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] IP32: Use common SGI button driver |
| From: | Thomas Bogendoerfer <tsbogend@alpha.franken.de> |
| Date: | Wed, 16 Jul 2008 15:18:58 +0200 (CEST) |
| Cc: | ralf@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
use the Indy/O2 button driver
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
arch/mips/sgi-ip32/ip32-platform.c | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/arch/mips/sgi-ip32/ip32-platform.c
b/arch/mips/sgi-ip32/ip32-platform.c
index 2ee401b..3d63721 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);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/3] [MIPS] fix missing prototypes in asm/fpu.h, Dmitri Vorobiev |
|---|---|
| Next by Date: | [PATCH] IP22: Use common SGI button driver, Thomas Bogendoerfer |
| Previous by Thread: | [MIPS] Another small series of cleanups, Dmitri Vorobiev |
| Next by Thread: | Re: [PATCH] IP32: Use common SGI button driver, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |