clk: Provide not locked variant of of_clk_get_from_provider()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 23 Aug 2013 15:03:43 +0000 (17:03 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 4 Dec 2013 16:19:30 +0000 (17:19 +0100)
commitd6782c263661abd6c7e8a375141d69fdc457f9e1
tree4e43750d3ddbcbe1de3696e1bcbe50e3e982acc2
parent4eadfc38c4d6e30775d3764f9a1a3098789d2acc
clk: Provide not locked variant of of_clk_get_from_provider()

Add helper functions for the of_clk_providers list locking and
an unlocked variant of of_clk_get_from_provider().
These functions are intended to be used in the clkdev to avoid
race condition in the device tree based clock look up in clk_get().

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/clk/clk.c
drivers/clk/clk.h [new file with mode: 0644]