linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: bt-sco: enable OF support
@ 2013-07-17  6:12 Barry Song
  2013-07-17  6:12 ` [PATCH 2/3] ASoC: hdmi-codec: " Barry Song
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Barry Song @ 2013-07-17  6:12 UTC (permalink / raw)
  To: linux-arm-kernel

From: Rongjun Ying <Rongjun.Ying@csr.com>

this makes users be able to add a bt-sco node in dts instead of
hardcoding a platform device in mach.

Signed-off-by: Rongjun Ying <Rongjun.Ying@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
 sound/soc/codecs/bt-sco.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
index a081d9f..39e7ebe 100644
--- a/sound/soc/codecs/bt-sco.c
+++ b/sound/soc/codecs/bt-sco.c
@@ -46,6 +46,14 @@ static int bt_sco_remove(struct platform_device *pdev)
 	return 0;
 }
 
+#ifdef CONFIG_OF
+static const struct of_device_id bt_sco_of_match[] = {
+	{ .compatible = "bt-sco-codec", },
+	{}
+};
+MODULE_DEVICE_TABLE(of, bt_sco_of_match);
+#endif
+
 static struct platform_device_id bt_sco_driver_ids[] = {
 	{
 		.name		= "dfbmcs320",
@@ -58,6 +66,9 @@ static struct platform_driver bt_sco_driver = {
 	.driver = {
 		.name = "bt-sco",
 		.owner = THIS_MODULE,
+#ifdef CONFIG_OF
+		.of_match_table = bt_sco_of_match,
+#endif
 	},
 	.probe = bt_sco_probe,
 	.remove = bt_sco_remove,
-- 
1.8.2.3



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-08-11 11:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17  6:12 [PATCH 1/3] ASoC: bt-sco: enable OF support Barry Song
2013-07-17  6:12 ` [PATCH 2/3] ASoC: hdmi-codec: " Barry Song
2013-07-17  8:49   ` Mark Rutland
2013-07-17  9:57     ` Mark Brown
2013-08-06  0:03       ` [alsa-devel] " Barry Song
2013-07-17  6:12 ` [PATCH 3/3] ASoC: hdmi-codec: let the driver support HDMI sink Barry Song
2013-07-17  9:52   ` Mark Brown
2013-07-17  8:40 ` [PATCH 1/3] ASoC: bt-sco: enable OF support Mark Rutland
2013-07-17  9:47   ` Mark Brown
2013-08-06  0:09     ` [alsa-devel] " Barry Song
2013-08-06 17:04       ` Mark Brown
2013-08-07  7:59         ` Barry Song
2013-08-07 14:46           ` Mark Brown
2013-08-09  8:41             ` Barry Song
2013-08-11 11:05               ` Mark Brown
2013-07-17 15:18 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).