video: tegra: dc: remove recursive mutex_lock in mode set
Jon Mayo [Wed, 28 Nov 2012 00:30:49 +0000 (16:30 -0800)]
Change-Id: I05ce08ed7cebb7ae228db1f61c3ce4234b239922
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/166732
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/video/tegra/dc/dc.c

index 37dec60..e3e388f 100644 (file)
@@ -2412,12 +2412,10 @@ static int tegra_dc_probe(struct platform_device *ndev)
        }
        disable_dc_irq(dc);
 
-       mutex_lock(&dc->lock);
        if (dc->pdata->flags & TEGRA_DC_FLAG_ENABLED) {
                _tegra_dc_set_default_videomode(dc);
                dc->enabled = _tegra_dc_enable(dc);
        }
-       mutex_unlock(&dc->lock);
 
        tegra_dc_create_debugfs(dc);