lkml.org 
[lkml]   [2012]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 04/18] ASoC: Ux500: Enable ux500 PCM driver for Device Tree
Date
This simple patch ensures the PCM driver will be probed during
boot-up when Device Tree is enabled.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
sound/soc/ux500/ux500_pcm.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/sound/soc/ux500/ux500_pcm.c b/sound/soc/ux500/ux500_pcm.c
index 1a04e24..557da2d 100644
--- a/sound/soc/ux500/ux500_pcm.c
+++ b/sound/soc/ux500/ux500_pcm.c
@@ -304,10 +304,16 @@ static int __devinit ux500_pcm_drv_remove(struct platform_device *pdev)
return 0;
}

+static const struct of_device_id ux500_pcm_match[] = {
+ { .compatible = "stericsson,ux500-pcm", },
+ {},
+};
+
static struct platform_driver ux500_pcm_driver = {
.driver = {
.name = "ux500-pcm",
.owner = THIS_MODULE,
+ .of_match_table = ux500_pcm_match,
},

.probe = ux500_pcm_drv_probe,
--
1.7.9.5


\
 
 \ /
  Last update: 2012-07-27 16:21    [W:0.208 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site