In some circumstances drivers register clks early and don't have access to a struct device because the device model isn't initialized yet. Add an API to let drivers register clks associated with a struct device_node so that these drivers can participate in getting parent clks through DT.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -773,6 +773,7 @@ struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw); · 772 unmodified lines | |||
| 773 | 773 | ||
| 774 | int __must_check clk_hw_register(struct device *dev, struct clk_hw *hw); | 774 | int __must_check clk_hw_register(struct device *dev, struct clk_hw *hw); |
| 775 | int __must_check devm_clk_hw_register(struct device *dev, struct clk_hw *hw); | 775 | int __must_check devm_clk_hw_register(struct device *dev, struct clk_hw *hw); |
| 776 | int __must_check of_clk_hw_register(struct device_node *node, struct clk_hw *hw); | ||
| 776 | 777 | ||
| 777 | void clk_unregister(struct clk *clk); | 778 | void clk_unregister(struct clk *clk); |
| 778 | void devm_clk_unregister(struct device *dev, struct clk *clk); | 779 | void devm_clk_unregister(struct device *dev, struct clk *clk); |