History

clk: Add of_clk_hw_register() API for early clk drivers

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.

Stephen Boyd committed 7 years ago

Commit 89a5ddc1 parent 1b833922 files · +24 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/clk-provider.h+1−0
@@ -773,6 +773,7 @@ struct clk *devm_clk_register(struct device *dev, struct clk_hw *hw); · 772 unmodified lines
773 773
774int __must_check clk_hw_register(struct device *dev, struct clk_hw *hw);774int __must_check clk_hw_register(struct device *dev, struct clk_hw *hw);
775int __must_check devm_clk_hw_register(struct device *dev, struct clk_hw *hw);775int __must_check devm_clk_hw_register(struct device *dev, struct clk_hw *hw);
776int __must_check of_clk_hw_register(struct device_node *node, struct clk_hw *hw);
776 777
777void clk_unregister(struct clk *clk);778void clk_unregister(struct clk *clk);
778void devm_clk_unregister(struct device *dev, struct clk *clk);779void devm_clk_unregister(struct device *dev, struct clk *clk);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t