ASoC: davinci-mcasp: Discourage use of fck_parent for clock reparenting
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 27 Jan 2016 13:02:49 +0000 (15:02 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 27 Jan 2016 13:13:10 +0000 (13:13 +0000)
The in-driver clock reparenting had been added when we did not had other
means to cleanly set the parent for the fck. Now we can use
assigned-clocks/assigned-clock-parents in DT binding. Print warning when
the fck_parent is present for McASP and recommend the switch to the proper
way to handle the clock selection.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c

index 2ccb8bccc9d4cc4a79c6a94abe4dfb1566872737..3cf46afb353f5019c6c0ee6a3c96fcb48b26b729 100644 (file)
@@ -1517,6 +1517,8 @@ static int mcasp_reparent_fck(struct platform_device *pdev)
        if (!parent_name)
                return 0;
 
+       dev_warn(&pdev->dev, "Update the bindings to use assigned-clocks!\n");
+
        gfclk = clk_get(&pdev->dev, "fck");
        if (IS_ERR(gfclk)) {
                dev_err(&pdev->dev, "failed to get fck\n");