Commit 88017bd0 authored by Fabio Estevam's avatar Fabio Estevam Committed by Daniel Vetter

drm/imx: imx-tve: Remove unused variable

'ret' is never used in tve_enable/tve_disable(), so just
remove it.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1483544696-32707-1-git-send-email-fabio.estevam@nxp.com
parent 00bd6175
...@@ -150,12 +150,10 @@ __releases(&tve->lock) ...@@ -150,12 +150,10 @@ __releases(&tve->lock)
static void tve_enable(struct imx_tve *tve) static void tve_enable(struct imx_tve *tve)
{ {
int ret;
if (!tve->enabled) { if (!tve->enabled) {
tve->enabled = true; tve->enabled = true;
clk_prepare_enable(tve->clk); clk_prepare_enable(tve->clk);
ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, regmap_update_bits(tve->regmap, TVE_COM_CONF_REG,
TVE_EN, TVE_EN); TVE_EN, TVE_EN);
} }
...@@ -174,12 +172,9 @@ static void tve_enable(struct imx_tve *tve) ...@@ -174,12 +172,9 @@ static void tve_enable(struct imx_tve *tve)
static void tve_disable(struct imx_tve *tve) static void tve_disable(struct imx_tve *tve)
{ {
int ret;
if (tve->enabled) { if (tve->enabled) {
tve->enabled = false; tve->enabled = false;
ret = regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, regmap_update_bits(tve->regmap, TVE_COM_CONF_REG, TVE_EN, 0);
TVE_EN, 0);
clk_disable_unprepare(tve->clk); clk_disable_unprepare(tve->clk);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment