projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a334fa
)
[MIPS] IP32: Use common SGI button driver
author
Thomas Bogendoerfer
<
[email protected]
>
Wed, 16 Jul 2008 13:18:58 +0000
(15:18 +0200)
committer
Ralf Baechle
<
[email protected]
>
Sun, 20 Jul 2008 13:38:18 +0000
(14:38 +0100)
Use the Indy/O2 button driver.
Signed-off-by: Thomas Bogendoerfer <
[email protected]
>
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/sgi-ip32/ip32-platform.c
patch
|
blob
|
history
diff --git
a/arch/mips/sgi-ip32/ip32-platform.c
b/arch/mips/sgi-ip32/ip32-platform.c
index 2ee401ba0b2568edb7bb1c503df5eb880c8589d3..3d63721e0e804e117cb0580837014c016856f66c 100644
(file)
--- 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);