diff options
Diffstat (limited to 'sound/soc/tegra/tegra30_dam.c')
-rw-r--r-- | sound/soc/tegra/tegra30_dam.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra30_dam.c b/sound/soc/tegra/tegra30_dam.c index 430374820b97..2230748c9e73 100644 --- a/sound/soc/tegra/tegra30_dam.c +++ b/sound/soc/tegra/tegra30_dam.c @@ -525,7 +525,10 @@ static int __devinit tegra30_dam_probe(struct platform_device *pdev) { struct resource *res, *region; struct tegra30_dam_context *dam; - int ret = 0, i; + int ret = 0; +#ifdef CONFIG_PM + int i; +#endif if ((pdev->id < 0) || (pdev->id >= TEGRA30_NR_DAM_IFC)) { @@ -572,6 +575,7 @@ static int __devinit tegra30_dam_probe(struct platform_device *pdev) goto err_clk_put_dam; } +#ifdef CONFIG_PM /* cache the POR values of DAM regs*/ tegra30_dam_enable_clock(pdev->id); @@ -585,6 +589,7 @@ static int __devinit tegra30_dam_probe(struct platform_device *pdev) } tegra30_dam_disable_clock(pdev->id); +#endif platform_set_drvdata(pdev, dam); |