ASoC: rt5514-spi: Convert to use devm_* API
authorAxel Lin <axel.lin@ingics.com>
Thu, 14 Jul 2016 08:57:05 +0000 (16:57 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 14 Jul 2016 09:56:54 +0000 (10:56 +0100)
commite9802c579399904bfef828e1a77b777b96ea33db
tree77e0bf3a07c40f248693bcdc18fe3eacb41555b3
parentb63d4d13ac7b8f947407a7eb44fdc40fadc8c5b8
ASoC: rt5514-spi: Convert to use devm_* API

Use devm_* API to simplify the code.
This patch also fixes the return value in probe error paths.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c