video: tegra: dc: apply CMU changes only if active
Jon Mayo [Thu, 6 Dec 2012 01:49:51 +0000 (17:49 -0800)]
Bug 1189604

Change-Id: I2f80ba92137a8a9153dad00fa3afea7ce4a1b0a1
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/168912
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

drivers/video/tegra/dc/dc.c

index abe912e..4ddd979 100644 (file)
@@ -879,6 +879,10 @@ int tegra_dc_update_cmu(struct tegra_dc *dc, struct tegra_dc_cmu *cmu)
        int ret;
 
        mutex_lock(&dc->lock);
+       if (!dc->enabled) {
+               mutex_unlock(&dc->lock);
+               return 0;
+       }
        tegra_dc_io_start(dc);
        tegra_dc_hold_dc_out(dc);