aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-02 08:07:41 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-02 11:21:25 -0500
commitfe4085e84f17a57a533a210a626e0cc9ead381f9 (patch)
tree2c30161b8f67effae6fd240dd5fba56d428920c9 /sound
parent02db110351019eef2d6b10e08162dd370542e9fd (diff)
ASoC: core: Log a warning when machines use soc-audio
snd_soc_register_card() has been available and strongly preferred since 2.6.38 but we're still seeing new drivers using it and the conversion rate for older machines has been low. Help address both issues by logging a warning when the soc-audio device probes. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 29dbbd793fc6..7978f6c01ef7 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1645,6 +1645,10 @@ static int soc_probe(struct platform_device *pdev)
1645 if (!card) 1645 if (!card)
1646 return -EINVAL; 1646 return -EINVAL;
1647 1647
1648 dev_warn(&pdev->dev,
1649 "ASoC machine %s should use snd_soc_register_card()\n",
1650 card->name);
1651
1648 /* Bodge while we unpick instantiation */ 1652 /* Bodge while we unpick instantiation */
1649 card->dev = &pdev->dev; 1653 card->dev = &pdev->dev;
1650 1654