summaryrefslogtreecommitdiffstats
path: root/sound/soc/meson
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-08-20 14:34:13 +0200
committerMark Brown <broonie@kernel.org>2019-08-20 15:11:38 +0200
commit18dd62ae3bc31baa0473e4a09e46c02e0bdc57a0 (patch)
tree520cac55fc607b59051aeb191952e5ecec91c6f1 /sound/soc/meson
parentASoC: uniphier: Fix double reset assersion when transitioning to suspend state (diff)
downloadlinux-18dd62ae3bc31baa0473e4a09e46c02e0bdc57a0.tar.xz
linux-18dd62ae3bc31baa0473e4a09e46c02e0bdc57a0.zip
ASoC: meson: axg-tdm-formatter: free reset on device removal
Use the devm variant to get the formatter reset so it is properly freed on device removal Fixes: 751bd5db5260 ("ASoC: meson: axg-tdm-formatter: add reset") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20190820123413.22249-1-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson')
-rw-r--r--sound/soc/meson/axg-tdm-formatter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/meson/axg-tdm-formatter.c b/sound/soc/meson/axg-tdm-formatter.c
index 2e498201139f..1a0bf9d3836d 100644
--- a/sound/soc/meson/axg-tdm-formatter.c
+++ b/sound/soc/meson/axg-tdm-formatter.c
@@ -327,7 +327,7 @@ int axg_tdm_formatter_probe(struct platform_device *pdev)
}
/* Formatter dedicated reset line */
- formatter->reset = reset_control_get_optional_exclusive(dev, NULL);
+ formatter->reset = devm_reset_control_get_optional_exclusive(dev, NULL);
if (IS_ERR(formatter->reset)) {
ret = PTR_ERR(formatter->reset);
if (ret != -EPROBE_DEFER)