ASoC: samsung: i2s: Ensure names of supplied clocks are unique
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 12 Feb 2018 16:15:33 +0000 (17:15 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 14 Feb 2018 12:09:23 +0000 (12:09 +0000)
commitaa274c5cfd13381372d2dace32b7354ccba7d2ab
treebdff4bd0a4621fd6f3a880785fb62f5b5f37341d
parente2ce852a7464fe3caaf72f9f3da87d2bfcf3eb84
ASoC: samsung: i2s: Ensure names of supplied clocks are unique

In order to support multiple instances of the I2S IP block the platform
device name is prepended to each clock registered by the driver.
The clock-output-names property is now not used, this should not cause
any issues as, for example, CDCLK clock is referenced through DT 'clocks'
property, not by name.

This change allows to have both I2S0 and I2S1 enabled simultaneously
on exynos5433 and working properly when #clock-cells property is specified
in respective DT nodes.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c