[PATCH] drm/tilcdc: free disp_clk when CONFIG_CPU_FREQ=n
Sekhar Nori
nsekhar at ti.com
Fri Aug 7 05:04:13 PDT 2015
disp_clk is allocated irrespective of CPU_FREQ support
so it must be freed irrespective of it.
Fixes: b478e336b3e7 ("drm/tilcdc: Fix the error path in tilcdc_load()")
Signed-off-by: Sekhar Nori <nsekhar at ti.com>
---
drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index 0f283a3b932c..4674ed6c45dc 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
@@ -330,8 +330,8 @@ fail_cpufreq_unregister:
cpufreq_unregister_notifier(&priv->freq_transition,
CPUFREQ_TRANSITION_NOTIFIER);
fail_put_disp_clk:
- clk_put(priv->disp_clk);
#endif
+ clk_put(priv->disp_clk);
fail_put_clk:
clk_put(priv->clk);
--
2.4.4.408.g16da57c
More information about the dri-devel
mailing list