ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Mon, 20 Nov 2017 22:14:55 +0000 (23:14 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Nov 2017 16:41:55 +0000 (16:41 +0000)
commit695b78b548d8a26288f041e907ff17758df9e1d5
treed3d472f33961be79693a03242759862e9cc272ed
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure

AC'97 ops (register read / write) need SSI regmap and clock, so they have
to be set after them.

We also need to set these ops back to NULL if we fail the probe.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/fsl/fsl_ssi.c