[PATCH 14/16] clk: make sure parent is not NULL in clk_fetch_parent_index()

2015-11-29 Thread Masahiro Yamada
If parent is given with NULL, clk_fetch_parent_index() could return a positive index value. Currently, parent is checked by the callers of this function, but it would be safer to do it in this function. Signed-off-by: Masahiro Yamada --- drivers/clk/clk.c | 3 +++ 1 file changed, 3

[PATCH 14/16] clk: make sure parent is not NULL in clk_fetch_parent_index()

2015-11-29 Thread Masahiro Yamada
If parent is given with NULL, clk_fetch_parent_index() could return a positive index value. Currently, parent is checked by the callers of this function, but it would be safer to do it in this function. Signed-off-by: Masahiro Yamada --- drivers/clk/clk.c | 3