ASoC: atmel: Fix error handling in at91samg20ek probe()
authorMark Brown <broonie@kernel.org>
Fri, 25 Mar 2022 15:42:40 +0000 (15:42 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 13:24:10 +0000 (14:24 +0100)
commit28103509248b94392e04a8ffcbc47da5e3e31dfc
tree60ea2a62787fd1dea705f59c08e58d2ce98098d9
parentc775cbf62ed4911e4f0f23880f01815753123690
ASoC: atmel: Fix error handling in at91samg20ek probe()

The error handling in the AT91SAM9G20-EK machine driver probe did not
consistently free the SSC in error paths, sometimes immediately returning
an error rather than doing cleanup. Fix this.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20220325154241.1600757-3-broonie@kernel.org
sound/soc/atmel/sam9g20_wm8731.c