[PATCH] drm/tilcdc: free disp_clk when CONFIG_CPU_FREQ=n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux