diff --git a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml index 08ed8f52c962..766e9109b2f7 100644 --- a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml +++ b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml @@ -33,9 +33,6 @@ properties: properties: remote-endpoint: maxItems: 1 - clocks: - maxItems: 1 - description: Describes the clock used by audio component. mclk-fs: description: | Multiplication factor between stream rate and codec mclk. diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c index 6cada4c1e283..ab31045cfc95 100644 --- a/sound/soc/generic/simple-card-utils.c +++ b/sound/soc/generic/simple-card-utils.c @@ -172,16 +172,15 @@ int asoc_simple_parse_clk(struct device *dev, * or device's module clock. */ clk = devm_get_clk_from_child(dev, node, NULL); - if (!IS_ERR(clk)) { - simple_dai->sysclk = clk_get_rate(clk); - - simple_dai->clk = clk; - } else if (!of_property_read_u32(node, "system-clock-frequency", &val)) { - simple_dai->sysclk = val; - } else { + if (IS_ERR(clk)) clk = devm_get_clk_from_child(dev, dlc->of_node, NULL); - if (!IS_ERR(clk)) - simple_dai->sysclk = clk_get_rate(clk); + + if (!IS_ERR(clk)) { + simple_dai->clk = clk; + simple_dai->sysclk = clk_get_rate(clk); + } else if (!of_property_read_u32(node, "system-clock-frequency", + &val)) { + simple_dai->sysclk = val; } if (of_property_read_bool(node, "system-clock-direction-out"))