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

Commit 52445637 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Stephen Boyd
Browse files

clk: fixed-rate: add clk_hw_unregister_fixed_rate()



This will be used to migrate to the clk_hw APIs.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 1a695a90
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -145,6 +145,17 @@ void clk_unregister_fixed_rate(struct clk *clk)
}
}
EXPORT_SYMBOL_GPL(clk_unregister_fixed_rate);
EXPORT_SYMBOL_GPL(clk_unregister_fixed_rate);


void clk_hw_unregister_fixed_rate(struct clk_hw *hw)
{
	struct clk_fixed_rate *fixed;

	fixed = to_clk_fixed_rate(hw);

	clk_hw_unregister(hw);
	kfree(fixed);
}
EXPORT_SYMBOL_GPL(clk_hw_unregister_fixed_rate);

#ifdef CONFIG_OF
#ifdef CONFIG_OF
/**
/**
 * of_fixed_clk_setup() - Setup function for simple fixed rate clock
 * of_fixed_clk_setup() - Setup function for simple fixed rate clock
+1 −0
Original line number Original line Diff line number Diff line
@@ -293,6 +293,7 @@ void clk_unregister_fixed_rate(struct clk *clk);
struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
struct clk_hw *clk_hw_register_fixed_rate_with_accuracy(struct device *dev,
		const char *name, const char *parent_name, unsigned long flags,
		const char *name, const char *parent_name, unsigned long flags,
		unsigned long fixed_rate, unsigned long fixed_accuracy);
		unsigned long fixed_rate, unsigned long fixed_accuracy);
void clk_hw_unregister_fixed_rate(struct clk_hw *hw);


void of_fixed_clk_setup(struct device_node *np);
void of_fixed_clk_setup(struct device_node *np);