ASoC: Add helper functions for deferred regmap setup
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 18 Nov 2014 18:45:52 +0000 (19:45 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 19 Nov 2014 10:46:03 +0000 (10:46 +0000)
commit20feb881988cdf5f53304c355ae8ee3bf82e80ec
tree195f81489bd8935cd1103d469b068c5181562bba
parentf114040e3ea6e07372334ade75d1ee0775c355e1
ASoC: Add helper functions for deferred regmap setup

Some drivers (most notably the AC'97 drivers) do not have access to their
regmap struct when the component/codec is registered. For those drivers the
automatic regmap setup will not work and needs to be done manually,
typically from the component/CODEC drivers probe callback.

This patch adds a set of helper function to handle deferred regmap
initialization as well as early regmap tear-down.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c