Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5970433 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Michael Turquette
Browse files

clk: Remove clk_init_cb typedef



Since commit c08ee14c ("clk: ti: change clock init to use
generic of_clk_init"), there is only a single (private) user left of the
(public) clk_init_cb typedef.

Hence expand its single user in the core clock code, and remove the
typedef.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMichael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1523365565-17124-1-git-send-email-geert+renesas@glider.be
parent 60cc43fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3906,7 +3906,7 @@ int of_clk_parent_fill(struct device_node *np, const char **parents,
EXPORT_SYMBOL_GPL(of_clk_parent_fill);

struct clock_provider {
	of_clk_init_cb_t clk_init_cb;
	void (*clk_init_cb)(struct device_node *);
	struct device_node *np;
	struct list_head node;
};
+0 −2
Original line number Diff line number Diff line
@@ -802,8 +802,6 @@ unsigned long clk_hw_round_rate(struct clk_hw *hw, unsigned long rate);

struct of_device_id;

typedef void (*of_clk_init_cb_t)(struct device_node *);

struct clk_onecell_data {
	struct clk **clks;
	unsigned int clk_num;