Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271371
b: refs/heads/master
c: f364658
h: refs/heads/master
i:
  271369: 7c38fcc
  271367: fa7df94
v: v3
  • Loading branch information
Tomi Valkeinen committed Sep 20, 2011
1 parent dd7554e commit cff27fc
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 40 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3393b85340a06e33ad290a4e7b88abe0d15d7499
refs/heads/master: f36465822d2e2651e03baf5c4c1a90ee4c1f9cdd
2 changes: 0 additions & 2 deletions trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3480,7 +3480,6 @@ static int omap_dispchw_remove(struct platform_device *pdev)
static int dispc_runtime_suspend(struct device *dev)
{
dispc_save_context();
clk_disable(dispc.dss_clk);
dss_runtime_put();

return 0;
Expand All @@ -3494,7 +3493,6 @@ static int dispc_runtime_resume(struct device *dev)
if (r < 0)
return r;

clk_enable(dispc.dss_clk);
dispc_restore_context();

return 0;
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4605,10 +4605,6 @@ static int omap_dsi1hw_remove(struct platform_device *dsidev)

static int dsi_runtime_suspend(struct device *dev)
{
struct dsi_data *dsi = dsi_get_dsidrv_data(to_platform_device(dev));

clk_disable(dsi->dss_clk);

dispc_runtime_put();
dss_runtime_put();

Expand All @@ -4617,7 +4613,6 @@ static int dsi_runtime_suspend(struct device *dev)

static int dsi_runtime_resume(struct device *dev)
{
struct dsi_data *dsi = dsi_get_dsidrv_data(to_platform_device(dev));
int r;

r = dss_runtime_get();
Expand All @@ -4628,8 +4623,6 @@ static int dsi_runtime_resume(struct device *dev)
if (r)
goto err_get_dispc;

clk_enable(dsi->dss_clk);

return 0;

err_get_dispc:
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,13 +819,11 @@ static int omap_dsshw_remove(struct platform_device *pdev)
static int dss_runtime_suspend(struct device *dev)
{
dss_save_context();
clk_disable(dss.dss_clk);
return 0;
}

static int dss_runtime_resume(struct device *dev)
{
clk_enable(dss.dss_clk);
dss_restore_context();
return 0;
}
Expand Down
14 changes: 0 additions & 14 deletions trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ static struct {
struct hdmi_config cfg;

struct clk *sys_clk;
struct clk *hdmi_clk;
} hdmi;

/*
Expand Down Expand Up @@ -1704,24 +1703,13 @@ static int hdmi_get_clocks(struct platform_device *pdev)

hdmi.sys_clk = clk;

clk = clk_get(&pdev->dev, "fck");
if (IS_ERR(clk)) {
DSSERR("can't get fck\n");
clk_put(hdmi.sys_clk);
return PTR_ERR(clk);
}

hdmi.hdmi_clk = clk;

return 0;
}

static void hdmi_put_clocks(void)
{
if (hdmi.sys_clk)
clk_put(hdmi.sys_clk);
if (hdmi.hdmi_clk)
clk_put(hdmi.hdmi_clk);
}

/* HDMI HW IP initialisation */
Expand Down Expand Up @@ -1792,7 +1780,6 @@ static int omapdss_hdmihw_remove(struct platform_device *pdev)

static int hdmi_runtime_suspend(struct device *dev)
{
clk_disable(hdmi.hdmi_clk);
clk_disable(hdmi.sys_clk);

dispc_runtime_put();
Expand All @@ -1815,7 +1802,6 @@ static int hdmi_runtime_resume(struct device *dev)


clk_enable(hdmi.sys_clk);
clk_enable(hdmi.hdmi_clk);

return 0;

Expand Down
14 changes: 0 additions & 14 deletions trunk/drivers/video/omap2/dss/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ static struct {
u32 wss_data;
struct regulator *vdda_dac_reg;

struct clk *tv_clk;
struct clk *tv_dac_clk;
} venc;

Expand Down Expand Up @@ -732,19 +731,10 @@ static int venc_get_clocks(struct platform_device *pdev)
{
struct clk *clk;

clk = clk_get(&pdev->dev, "fck");
if (IS_ERR(clk)) {
DSSERR("can't get fck\n");
return PTR_ERR(clk);
}

venc.tv_clk = clk;

if (dss_has_feature(FEAT_VENC_REQUIRES_TV_DAC_CLK)) {
clk = clk_get(&pdev->dev, "tv_dac_clk");
if (IS_ERR(clk)) {
DSSERR("can't get tv_dac_clk\n");
clk_put(venc.tv_clk);
return PTR_ERR(clk);
}
} else {
Expand All @@ -758,8 +748,6 @@ static int venc_get_clocks(struct platform_device *pdev)

static void venc_put_clocks(void)
{
if (venc.tv_clk)
clk_put(venc.tv_clk);
if (venc.tv_dac_clk)
clk_put(venc.tv_dac_clk);
}
Expand Down Expand Up @@ -835,7 +823,6 @@ static int venc_runtime_suspend(struct device *dev)
{
if (venc.tv_dac_clk)
clk_disable(venc.tv_dac_clk);
clk_disable(venc.tv_clk);

dispc_runtime_put();
dss_runtime_put();
Expand All @@ -855,7 +842,6 @@ static int venc_runtime_resume(struct device *dev)
if (r < 0)
goto err_get_dispc;

clk_enable(venc.tv_clk);
if (venc.tv_dac_clk)
clk_enable(venc.tv_dac_clk);

Expand Down

0 comments on commit cff27fc

Please sign in to comment.