diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | 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 2ee401ba0b25..3d63721e0e80 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); | |||
85 | 85 | ||
86 | static __init int sgio2btns_devinit(void) | 86 | static __init int sgio2btns_devinit(void) |
87 | { | 87 | { |
88 | struct platform_device *pd; | 88 | return IS_ERR(platform_device_register_simple("sgibtns", -1, NULL, 0)); |
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; | ||
100 | } | 89 | } |
101 | 90 | ||
102 | device_initcall(sgio2btns_devinit); | 91 | device_initcall(sgio2btns_devinit); |