History

clkdev: add managed clkdev lookup registration

Clkdev registration lacks of managed registration functions and it seems few drivers do not drop clkdev lookups at exit. Add devm_clk_hw_register_clkdev and devm_clk_release_clkdev to ease lookup releasing at exit.

Matti Vaittinen committed 7 years ago

Commit 3eee6c71 parent bfeffd13 files · +93 −23Browse files

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

Unified · Split

include/linux/clkdev.h+4−0
@@ -52,4 +52,8 @@ int clk_add_alias(const char *, const char *, const char *, struct device *); · 51 unmodified lines
52int clk_register_clkdev(struct clk *, const char *, const char *);52int clk_register_clkdev(struct clk *, const char *, const char *);
53int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *);53int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *);
54 54
55int devm_clk_hw_register_clkdev(struct device *dev, struct clk_hw *hw,
56 const char *con_id, const char *dev_id);
57void devm_clk_release_clkdev(struct device *dev, const char *con_id,
58 const char *dev_id);
55#endif59#endif

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