From: Mark Brown Date: Fri, 2 Mar 2012 13:07:41 +0000 (+0000) Subject: ASoC: core: Log a warning when machines use soc-audio X-Git-Tag: v3.12-rc1~3017^2~52^2~25^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe4085e84f17a57a533a210a626e0cc9ead381f9;p=kernel%2Fkernel-generic.git 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 Acked-by: Liam Girdwood --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 29dbbd7..7978f6c 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) if (!card) return -EINVAL; + dev_warn(&pdev->dev, + "ASoC machine %s should use snd_soc_register_card()\n", + card->name); + /* Bodge while we unpick instantiation */ card->dev = &pdev->dev;