25 Apr
2014
25 Apr
'14
6:10 p.m.
On Fri, Apr 25, 2014 at 07:58:19PM +0800, Nicolin Chen wrote:
- /* Get system clock for rx clock rate calculation */
- sprintf(tmp, "rxtx%d", SPDIF_CLK_SRC_SYSCLK);
- spdif_priv->sysclk = devm_clk_get(&pdev->dev, tmp);
- if (IS_ERR(spdif_priv->sysclk)) {
dev_err(&pdev->dev, "no sys clock (%s) in devicetree\n", tmp);
return PTR_ERR(spdif_priv->sysclk);
- }
Why is this not just a fixed string - it seems like the clock name is a constant anyway?