[PATCH] CLKDEV: return from clk_find as soon as we get maching clk

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Mar 2 15:39:11 EST 2010


On Tue, Mar 02, 2010 at 04:35:54PM +0530, Viresh KUMAR wrote:
> clk_find function looks for clock with matching dev_id and con_id.
> We should return from clk_find as soon as we get a clock with matching dev_id
> and con_id. This can be done by comparing variable "match" with 3.

This breaks the semantics function.  Please look again at the code you're
modifying, and ascertain whether you're changing the semantics of it,
particularly with respect to what happens _in addition_ to returning the
struct clk.

Hint: "return p->clk" is insufficient.



More information about the linux-arm-kernel mailing list