ASoC: fsi: fixup pm_runtime_disable() timing on fsi_probe()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 10 Sep 2012 09:13:52 +0000 (02:13 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 09:27:04 +0000 (17:27 +0800)
pm_runtime_disable() error handling timing on fsi_probe() was wrong.
This patch fixes it up.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/sh/fsi.c

index 0540408a9fa9ab706c28e7ef6ed60a329bec027c..8534989836aaabb97672fe73c7b20fc63a46f2eb 100644 (file)
@@ -1730,12 +1730,12 @@ exit_snd_soc:
 exit_free_irq:
        free_irq(irq, master);
 exit_fsib:
+       pm_runtime_disable(&pdev->dev);
        fsi_stream_remove(&master->fsib);
 exit_fsia:
        fsi_stream_remove(&master->fsia);
 exit_iounmap:
        iounmap(master->base);
-       pm_runtime_disable(&pdev->dev);
 exit_kfree:
        kfree(master);
        master = NULL;