Commit 18dd62ae authored by Jerome Brunet's avatar Jerome Brunet Committed by Mark Brown

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: 751bd5db ("ASoC: meson: axg-tdm-formatter: add reset")
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20190820123413.22249-1-jbrunet@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c372a355
...@@ -327,7 +327,7 @@ int axg_tdm_formatter_probe(struct platform_device *pdev) ...@@ -327,7 +327,7 @@ int axg_tdm_formatter_probe(struct platform_device *pdev)
} }
/* Formatter dedicated reset line */ /* 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)) { if (IS_ERR(formatter->reset)) {
ret = PTR_ERR(formatter->reset); ret = PTR_ERR(formatter->reset);
if (ret != -EPROBE_DEFER) if (ret != -EPROBE_DEFER)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment