diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-13 05:47:49 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-03-22 18:18:18 -0400 |
commit | 5fda6858a49c2d8706adcc05f083b64af172d3eb (patch) | |
tree | 41046ba31b3059896bb9dadc2ac173b9dc85f282 /drivers | |
parent | f15ea6cbc81b1369c5eefcd8eada35057c46ab86 (diff) |
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: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Pankaj Jangra <jangra.pankaj9@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 253792a46c08..5e8ffff99362 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -1026,7 +1026,7 @@ static struct clk *clk_propagate_rate_change(struct clk *clk, unsigned long even | |||
1026 | int ret = NOTIFY_DONE; | 1026 | int ret = NOTIFY_DONE; |
1027 | 1027 | ||
1028 | if (clk->rate == clk->new_rate) | 1028 | if (clk->rate == clk->new_rate) |
1029 | return 0; | 1029 | return NULL; |
1030 | 1030 | ||
1031 | if (clk->notifier_count) { | 1031 | if (clk->notifier_count) { |
1032 | ret = __clk_notify(clk, event, clk->rate, clk->new_rate); | 1032 | ret = __clk_notify(clk, event, clk->rate, clk->new_rate); |