Re: [alsa-devel] [PATCH 1/2] ASoC: mediatek: add power-domain get/put ctrl for mt2701

From: Mark Brown
Date: Thu Feb 16 2017 - 13:27:14 EST


On Thu, Feb 16, 2017 at 01:27:15PM +0800, Garlic Tseng wrote:

> pm_runtime_enable(&pdev->dev);
> if (!pm_runtime_enabled(&pdev->dev))
> goto err_pm_disable;
> + pm_runtime_get_sync(&pdev->dev);

You should really check for errors here.

Attachment: signature.asc
Description: PGP signature