diff options
author | Anil Kumar <anilk4.v@gmail.com> | 2014-11-09 07:45:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-10 08:45:38 -0500 |
commit | 7771ef3286711a121b763c3620c4619f51b2acfd (patch) | |
tree | cb767af22d2a36c01a632a6b12b60031f2478cbb /sound/soc/davinci | |
parent | 0380866a9131646787dc60d19a6d5d2c22dffdd1 (diff) |
ASoC: davinvi-mcasp: Balance pm_runtime_enable() on probe failure
If probe fails then we need to call pm_runtime_disable() to balance
out the previous pm_runtime_enable() call.
Signed-off-by: Anil Kumar <anilk4.v@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 002351f9fc40..57f606e4cf02 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -1225,6 +1225,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev) | |||
1225 | ret = pm_runtime_get_sync(&pdev->dev); | 1225 | ret = pm_runtime_get_sync(&pdev->dev); |
1226 | if (IS_ERR_VALUE(ret)) { | 1226 | if (IS_ERR_VALUE(ret)) { |
1227 | dev_err(&pdev->dev, "pm_runtime_get_sync() failed\n"); | 1227 | dev_err(&pdev->dev, "pm_runtime_get_sync() failed\n"); |
1228 | pm_runtime_disable(&pdev->dev); | ||
1228 | return ret; | 1229 | return ret; |
1229 | } | 1230 | } |
1230 | 1231 | ||