summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/pxa2xx-pcm.c
diff options
context:
space:
mode:
authorMark Brown2008-12-03 20:58:17 +0100
committerMark Brown2008-12-09 11:49:28 +0100
commit958e792c7c8f06a9e666adb0ed94fff2cf90156f (patch)
tree2acc96b83738a593cb19551101583046000ff275 /sound/soc/pxa/pxa2xx-pcm.c
parentASoC: Add platform registration API (diff)
downloadkernel-qcow2-linux-958e792c7c8f06a9e666adb0ed94fff2cf90156f.tar.gz
kernel-qcow2-linux-958e792c7c8f06a9e666adb0ed94fff2cf90156f.tar.xz
kernel-qcow2-linux-958e792c7c8f06a9e666adb0ed94fff2cf90156f.zip
ASoC: Register platform drivers
This is done at modprobe time, mirroring current behaviour, except for mpc5200_psc_i2s where we do registration at the same time as we register with soc-of-simple. Since the core currently ignores registration this has no practical impact. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa/pxa2xx-pcm.c')
-rw-r--r--sound/soc/pxa/pxa2xx-pcm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c
index 0f6b7bb2d44b..4fa1578f5d47 100644
--- a/sound/soc/pxa/pxa2xx-pcm.c
+++ b/sound/soc/pxa/pxa2xx-pcm.c
@@ -118,6 +118,18 @@ struct snd_soc_platform pxa2xx_soc_platform = {
};
EXPORT_SYMBOL_GPL(pxa2xx_soc_platform);
+static int __devinit pxa2xx_soc_platform_init(void)
+{
+ return snd_soc_register_platform(&pxa2xx_soc_platform);
+}
+module_init(pxa2xx_soc_platform_init);
+
+static void __exit pxa2xx_soc_platform_exit(void)
+{
+ snd_soc_unregister_platform(&pxa2xx_soc_platform);
+}
+module_exit(pxa2xx_soc_platform_exit);
+
MODULE_AUTHOR("Nicolas Pitre");
MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module");
MODULE_LICENSE("GPL");