From: Kuninori Morimoto Date: Fri, 8 Apr 2011 06:09:17 +0000 (+0900) Subject: ASoC: fsi: modify vague PM control on probe X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b9c9f9675fe002e95e596dbe086fdd3baa59db46;p=openwrt%2Fstaging%2Fblogic.git ASoC: fsi: modify vague PM control on probe Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 8e51a6eafbc3..8071bc68560d 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1200,10 +1200,11 @@ static int fsi_probe(struct platform_device *pdev) master->fsib.master = master; pm_runtime_enable(&pdev->dev); - pm_runtime_resume(&pdev->dev); dev_set_drvdata(&pdev->dev, master); + pm_runtime_get_sync(&pdev->dev); fsi_soft_all_reset(master); + pm_runtime_put_sync(&pdev->dev); ret = request_irq(irq, &fsi_interrupt, IRQF_DISABLED, id_entry->name, master);