Commit 5fda6858 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mike Turquette

clk: Fix incorrect return type in clk.c

Return type of function clk_propagate_rate_change is a pointer.
But 0 was being returned. Change it to NULL.
Silences the following warning:
drivers/clk/clk.c:977:24: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: default avatarPankaj Jangra <jangra.pankaj9@gmail.com>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent f15ea6cb
...@@ -1026,7 +1026,7 @@ static struct clk *clk_propagate_rate_change(struct clk *clk, unsigned long even ...@@ -1026,7 +1026,7 @@ static struct clk *clk_propagate_rate_change(struct clk *clk, unsigned long even
int ret = NOTIFY_DONE; int ret = NOTIFY_DONE;
if (clk->rate == clk->new_rate) if (clk->rate == clk->new_rate)
return 0; return NULL;
if (clk->notifier_count) { if (clk->notifier_count) {
ret = __clk_notify(clk, event, clk->rate, clk->new_rate); ret = __clk_notify(clk, event, clk->rate, clk->new_rate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment