We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25444e8 commit 3e6ebdfCopy full SHA for 3e6ebdf
sound/soc/stm/stm32_spdifrx.c
@@ -12,6 +12,7 @@
12
#include <linux/delay.h>
13
#include <linux/module.h>
14
#include <linux/of_platform.h>
15
+#include <linux/pm_runtime.h>
16
#include <linux/regmap.h>
17
#include <linux/reset.h>
18
@@ -955,6 +956,7 @@ static int stm32_spdifrx_remove(struct platform_device *pdev)
955
956
957
snd_dmaengine_pcm_unregister(&pdev->dev);
958
snd_soc_unregister_component(&pdev->dev);
959
+ pm_runtime_disable(&pdev->dev);
960
961
return 0;
962
}
@@ -1045,6 +1047,8 @@ static int stm32_spdifrx_probe(struct platform_device *pdev)
1045
1047
FIELD_GET(SPDIFRX_VERR_MIN_MASK, ver));
1046
1048
1049
1050
+ pm_runtime_enable(&pdev->dev);
1051
+
1052
return ret;
1053
1054
error:
0 commit comments