drm/tilcdc: fix build error when !CONFIG_CPU_FREQ
authorGrygorii Strashko <Grygorii.Strashko@linaro.org>
Wed, 25 Feb 2015 16:19:43 +0000 (18:19 +0200)
committerJyri Sarha <jsarha@ti.com>
Thu, 25 Feb 2016 14:39:34 +0000 (16:39 +0200)
Fix build error when !CONFIG_CPU_FREQ
drivers/gpu/drm/tilcdc/tilcdc_drv.c: In function 'tilcdc_load':
drivers/gpu/drm/tilcdc/tilcdc_drv.c:327:1: error: label 'fail_put_clk' defined but not used [-Werror=unused-label]
 fail_put_clk:
 ^

Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c

index c204359422a2b64952c8e1c1e6d968f4956ea95e..977c843f663a25aea2c94821da9e1dc05b9689ea 100644 (file)
@@ -325,9 +325,9 @@ fail_cpufreq_unregister:
 #ifdef CONFIG_CPU_FREQ
        cpufreq_unregister_notifier(&priv->freq_transition,
                        CPUFREQ_TRANSITION_NOTIFIER);
-#endif
 
 fail_put_clk:
+#endif
        clk_put(priv->clk);
 
 fail_iounmap: