Message ID | 8be4029ee31fd0e07d033e3584e43693a8fbc72f.1438948927.git.nsekhar@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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);
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@ti.com> --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)