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>
This commit is contained in:
Anil Kumar 2014-11-09 18:15:14 +05:30 коммит произвёл Mark Brown
Родитель 0380866a91
Коммит 7771ef3286
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1225,6 +1225,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev)
ret = pm_runtime_get_sync(&pdev->dev); ret = pm_runtime_get_sync(&pdev->dev);
if (IS_ERR_VALUE(ret)) { if (IS_ERR_VALUE(ret)) {
dev_err(&pdev->dev, "pm_runtime_get_sync() failed\n"); dev_err(&pdev->dev, "pm_runtime_get_sync() failed\n");
pm_runtime_disable(&pdev->dev);
return ret; return ret;
} }