clk: Replace of_clk_get_by_clkspec() with of_clk_get_from_provider()
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 5 Feb 2015 23:39:11 +0000 (15:39 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 12 Mar 2015 19:20:34 +0000 (12:20 -0700)
commit306c342f9cb1f573af57a6afd1b3549aa97b9281
tree12b6028e71456ca59e0f2632c38b27e1e085c2c4
parent50595f8b9e78b3c80d341bf9da3e7848d9abbe2a
clk: Replace of_clk_get_by_clkspec() with of_clk_get_from_provider()

of_clk_get_by_clkspec() has the same function signature as
of_clk_get_from_provider()

 struct clk *of_clk_get_by_clkspec(struct of_phandle_args
 *clkspec)
 struct clk *of_clk_get_from_provider(struct of_phandle_args
 *clkspec)

except of_clk_get_by_clkspec() checks to make sure clkspec is not
NULL. Let's remove of_clk_get_by_clkspec() and replace the
callers of it (clkconf.c) with of_clk_get_from_provider().

Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-conf.c
drivers/clk/clk.c
drivers/clk/clk.h
drivers/clk/clkdev.c