123456789101112131415161718192021222324252627282930 |
- From 1d85b3609cf4239f7e971b839f1ab985413cd560 Mon Sep 17 00:00:00 2001
- From: Samuel Holland <[email protected]>
- Date: Sat, 13 Nov 2021 11:12:14 -0600
- Subject: [PATCH 068/117] ASoC: sun4i-spdif: Assert reset when removing the
- device
- This completes reversing the process done in the probe function.
- Signed-off-by: Samuel Holland <[email protected]>
- ---
- sound/soc/sunxi/sun4i-spdif.c | 4 ++++
- 1 file changed, 4 insertions(+)
- --- a/sound/soc/sunxi/sun4i-spdif.c
- +++ b/sound/soc/sunxi/sun4i-spdif.c
- @@ -710,10 +710,14 @@ err_unregister:
-
- static int sun4i_spdif_remove(struct platform_device *pdev)
- {
- + struct sun4i_spdif_dev *host = dev_get_drvdata(&pdev->dev);
- +
- pm_runtime_disable(&pdev->dev);
- if (!pm_runtime_status_suspended(&pdev->dev))
- sun4i_spdif_runtime_suspend(&pdev->dev);
-
- + reset_control_assert(host->rst);
- +
- return 0;
- }
-
|