Commit 8fa9cc16 authored by Thomas Bogendoerfer's avatar Thomas Bogendoerfer Committed by Ralf Baechle

[MIPS] IP32: Add platform devices for audio and volume button

Create platform devices for audio and volume button driver.
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 7a2852e4
...@@ -65,6 +65,42 @@ static __init int meth_devinit(void) ...@@ -65,6 +65,42 @@ static __init int meth_devinit(void)
device_initcall(meth_devinit); device_initcall(meth_devinit);
static __init int sgio2audio_devinit(void)
{
struct platform_device *pd;
int ret;
pd = platform_device_alloc("sgio2audio", -1);
if (!pd)
return -ENOMEM;
ret = platform_device_add(pd);
if (ret)
platform_device_put(pd);
return ret;
}
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;
}
device_initcall(sgio2btns_devinit);
MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>"); MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("8250 UART probe driver for SGI IP32 aka O2"); MODULE_DESCRIPTION("8250 UART probe driver for SGI IP32 aka O2");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment