Re: [PATCH 1/3] clk: Add error handling to clk_fetch_parent_index()

2013-10-01 Thread Mike Turquette
Quoting Tomasz Figa (2013-09-28 17:37:14) > There are at least two different error cases that can happen in > clk_fetch_parent_index() function: > - allocation failure, > - parent clock lookup failure, > however it returns only an u8, which is supposed to contain parent clock > index. > > This p

[PATCH 1/3] clk: Add error handling to clk_fetch_parent_index()

2013-09-28 Thread Tomasz Figa
There are at least two different error cases that can happen in clk_fetch_parent_index() function: - allocation failure, - parent clock lookup failure, however it returns only an u8, which is supposed to contain parent clock index. This patch modified the function to return full int instead allo