Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] IP32: Use common SGI button driver
@ 2008-07-16 13:18 Thomas Bogendoerfer
  2008-07-16 13:24 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Bogendoerfer @ 2008-07-16 13:18 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] IP32: Use common SGI button driver
  2008-07-16 13:18 [PATCH] IP32: Use common SGI button driver Thomas Bogendoerfer
@ 2008-07-16 13:24 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-07-16 13:24 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: linux-mips

Applied,

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-16 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 13:18 [PATCH] IP32: Use common SGI button driver Thomas Bogendoerfer
2008-07-16 13:24 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox