summaryrefslogtreecommitdiff
path: root/drivers/sn
diff options
context:
space:
mode:
authorTomasz Figa <tomasz.figa@gmail.com>2013-09-29 02:37:14 +0200
committerMike Turquette <mturquette@linaro.org>2013-10-01 18:40:16 -0700
commitf1c8b2edf916b5be9dc29e98989a5eaff3c6e75b (patch)
treee46e0af10ea370a78ed7ed33c615e68988d2f3e1 /drivers/sn
parent15c03dd4859ab16f9212238f29dd315654aa94f6 (diff)
clk: Add error handling to clk_fetch_parent_index()
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 allowing positive clock indices and negative error codes to be returned. All users of this function are adjusted as well to handle the return value correctly. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/sn')
0 files changed, 0 insertions, 0 deletions