Clock hierarchy needs to be initialized only for I2S that is a part of
Audio Subsystem. Remaining I2S do not need this, so this patch makes the
initialization conditional, based on presence of secondary DAI, which is
present only in Audio Subsystem I2S block.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
return -ENXIO;
}
- /* Set clock hierarchy for audio subsystem */
- ret = clk_set_hierarchy(i2s);
- if (ret) {
- dev_err(&i2s->pdev->dev, "failed to set clock hierachy.\n");
- return ret;
+ if (i2s->quirks & QUIRK_SEC_DAI) {
+ /* Set clock hierarchy for audio subsystem */
+ ret = clk_set_hierarchy(i2s);
+ if (ret) {
+ dev_err(&i2s->pdev->dev, "failed to set clock hierachy.\n");
+ return ret;
+ }
}
if (other) {