]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 5979/1: CLKDEV: return from clk_find as soon as we get maching clk
authorviresh kumar <viresh.linux@gmail.com>
Tue, 9 Mar 2010 10:54:30 +0000 (11:54 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 19 Mar 2010 16:58:51 +0000 (16:58 +0000)
commit269342f139c30c7621536ade2f0edb470a276f3f
treee7a9791e41a86374d3bf061a305cb5e115283744
parent3a0d8be3f0b0ae51d7ac36e0ecc466cd71f3b03e
ARM: 5979/1: CLKDEV: return from clk_find as soon as we get maching clk

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.

Acked-by: Uwe Kleine-Konig <u.kleine-koenig@pengutronix.de>
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/clkdev.c