Skip to content

Commit

Permalink
clk: Fix incorrect return type in clk.c
Browse files Browse the repository at this point in the history
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: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Pankaj Jangra <jangra.pankaj9@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Sachin Kamat authored and Mike Turquette committed Mar 22, 2013
1 parent f15ea6c commit 5fda685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ static struct clk *clk_propagate_rate_change(struct clk *clk, unsigned long even
int ret = NOTIFY_DONE;

if (clk->rate == clk->new_rate)
return 0;
return NULL;

if (clk->notifier_count) {
ret = __clk_notify(clk, event, clk->rate, clk->new_rate);
Expand Down

0 comments on commit 5fda685

Please sign in to comment.