diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2017-09-04 17:41:48 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-19 16:57:56 +0200 |
commit | 9e3f9f36a6f40bb6ba9b3844d709314121e4c106 (patch) | |
tree | c711b1d47efdbe03f169ef86e7ea51c3cbc59a5f /sound/soc/codecs/wm5102.c | |
parent | Linux 4.14-rc1 (diff) | |
download | linux-9e3f9f36a6f40bb6ba9b3844d709314121e4c106.tar.xz linux-9e3f9f36a6f40bb6ba9b3844d709314121e4c106.zip |
ASoC: arizona: Add new common Arizona init function
Currently the driver has quite a few small initialisation functions, in
preparation for some refactoring add a new function arizona_init_common.
This will be used bus probe level initialisation that is common across
Arizona devices. For now just move the notifier chain initialisation in
there.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm5102.c')
-rw-r--r-- | sound/soc/codecs/wm5102.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 72486bf072f2..8354bdf7fc15 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c @@ -1951,7 +1951,6 @@ static int wm5102_codec_probe(struct snd_soc_codec *codec) return ret; arizona_init_gpio(codec); - arizona_init_notifiers(codec); snd_soc_component_disable_pin(component, "HAPTICS"); @@ -2098,6 +2097,8 @@ static int wm5102_probe(struct platform_device *pdev) return ret; } + arizona_init_common(arizona); + ret = arizona_init_spk_irqs(arizona); if (ret < 0) goto err_dsp_irq; |