From: Deepak Chitriki <deepak.chitriki@xxxxxx> cpufreq_register_notifier() function calls srcu_notifier_chain_register() which always returns 0 on success and dspbridge throws the error message "clk_notifier_register failed for iva2_ck". Fix the faulty ! in if logic and the faulty error message we report to log. Cc: Ameya Palande <ameya.palande@xxxxxxxxx> Cc: Andy Shevchenko <ext-andriy.shevchenko@xxxxxxxxx> Cc: Deepak Chitriki <deepak.chitriki@xxxxxx> Cc: Fernando Guzman Lugo <x0095840@xxxxxx> Cc: Felipe Contreras <felipe.contreras@xxxxxxxxx> Cc: Hari Kanigeri <h-kanigeri2@xxxxxx> Cc: Hiroshi Doyu <hiroshi.doyu@xxxxxxxxx> Cc: Omar Ramirez Luna <omar.ramirez@xxxxxx> Cc: Ramesh Gupta <grgupta@xxxxxx> Signed-off-by: Deepak Chitriki <deepak.chitriki@xxxxxx> --- drivers/dsp/bridge/rmgr/drv_interface.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dsp/bridge/rmgr/drv_interface.c b/drivers/dsp/bridge/rmgr/drv_interface.c index 61aa13a..388c07a 100644 --- a/drivers/dsp/bridge/rmgr/drv_interface.c +++ b/drivers/dsp/bridge/rmgr/drv_interface.c @@ -351,10 +351,10 @@ static int __devinit omap34_xx_bridge_probe(struct platform_device *pdev) if (!clk_handle) pr_err("%s: clk_get failed to get iva2_ck\n", __func__); - if (!cpufreq_register_notifier(&iva_clk_notifier, + if (cpufreq_register_notifier(&iva_clk_notifier, CPUFREQ_TRANSITION_NOTIFIER)) - pr_err("%s: clk_notifier_register failed for iva2_ck\n", - __func__); + pr_err("%s: cpufreq_register_notifier failed for " + "iva2_ck\n", __func__); #endif driver_context = dsp_init(&init_status); if (DSP_FAILED(init_status)) { @@ -393,9 +393,9 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev) goto func_cont; #ifdef CONFIG_BRIDGE_DVFS - if (!cpufreq_unregister_notifier(&iva_clk_notifier, + if (cpufreq_unregister_notifier(&iva_clk_notifier, CPUFREQ_TRANSITION_NOTIFIER)) - pr_err("%s: clk_notifier_unregister failed for iva2_ck\n", + pr_err("%s: cpufreq_unregister_notifier failed for iva2_ck\n", __func__); #endif /* #ifdef CONFIG_BRIDGE_DVFS */ -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html