clk: ti: dra7: return error code in failure case
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 19 May 2014 11:25:48 +0000 (19:25 +0800)
committerTero Kristo <t-kristo@ti.com>
Thu, 19 Jun 2014 11:52:31 +0000 (14:52 +0300)
commit8d2f9e8eca807479c83c8f765b6859838da618eb
treea433b3d127650d24d7ee4d54451c399fc2bf718b
parent6c7ee8905d54e66d01902c59490bbc99d87d4efb
clk: ti: dra7: return error code in failure case

Add a returned error code in the MAX_APLL_WAIT_TRIES case.  Remove the
updating of the return variable r to 0 if MAX_APLL_WAIT_TRIES is not yet
reached, because r is already 0 at this point.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/ti/apll.c