OSDN Git Service

ASoC: sun8i-codec: Attach the bus clock to the regmap
authorSamuel Holland <samuel@sholland.org>
Mon, 31 Aug 2020 03:48:51 +0000 (22:48 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 7 Sep 2020 13:00:01 +0000 (14:00 +0100)
commitefb736fb9eceac6ce335bbaa3d788a05649160b5
treecf210a73068b50e838ede43dc8475bf8a80cf166
parentf30ef55c332935c1d7c5f4ae3d084bec8d05712e
ASoC: sun8i-codec: Attach the bus clock to the regmap

When attached to the regmap, the bus clock is automatically enabled as
needed to access device registers. This avoids needing code to manage it
separately in the driver.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20200831034852.18841-9-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c