lkml.org 
[lkml]   [2015]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/26] clk: Replace __clk_get_num_parents with clk_hw_get_num_parents()
On 31/07/15 19:03, Stephen Boyd wrote:
> diff --git a/drivers/clk/mmp/clk-mix.c b/drivers/clk/mmp/clk-mix.c
> index 665cb6794639..8653e555c920 100644
> --- a/drivers/clk/mmp/clk-mix.c
> +++ b/drivers/clk/mmp/clk-mix.c
> @@ -63,7 +63,7 @@ static unsigned int _get_div(struct mmp_clk_mix *mix, unsigned int val)
>
> static unsigned int _get_mux(struct mmp_clk_mix *mix, unsigned int val)
> {
> - int num_parents = __clk_get_num_parents(mix->hw.clk);
> + int num_parents = clk_hw_get_num_parents(hw);

Shouldn't this be:
int num_parents = clk_hw_get_num_parents(&mix->hw);

?
> int i;
>
> if (mix->mux_flags & CLK_MUX_INDEX_BIT)

With the above fixed

Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

--
Thanks,
Sylwester


\
 
 \ /
  Last update: 2015-08-06 10:21    [W:0.422 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site