[RESEND PATCH v7 3/5] clkdev: Fix race condition in clock lookup from device tree

2013-12-04 Thread Sylwester Nawrocki
There is currently a race condition in the device tree part of clk_get() function, since the pointer returned from of_clk_get_by_name() may become invalid before __clk_get() call. E.g. due to the clock provider driver remove() callback being called in between of_clk_get_by_name() and __clk_get().

[RESEND PATCH v7 3/5] clkdev: Fix race condition in clock lookup from device tree

2013-12-04 Thread Sylwester Nawrocki
There is currently a race condition in the device tree part of clk_get() function, since the pointer returned from of_clk_get_by_name() may become invalid before __clk_get() call. E.g. due to the clock provider driver remove() callback being called in between of_clk_get_by_name() and __clk_get().