1DEVM_CLK_GET(9) Clock Framework DEVM_CLK_GET(9)
2
3
4
6 devm_clk_get - lookup and obtain a managed reference to a clock
7 producer.
8
10 struct clk * devm_clk_get(struct device * dev, const char * id);
11
13 dev
14 device for clock “consumer”
15
16 id
17 clock consumer ID
18
20 Returns a struct clk corresponding to the clock producer, or valid
21 IS_ERR condition containing errno. The implementation uses dev and id
22 to determine the clock consumer, and thereby the clock producer. (IOW,
23 id may be identical strings, but clk_get may return different clock
24 producers depending on dev.)
25
26 Drivers must assume that the clock source is not enabled.
27
28 devm_clk_get should not be called from within interrupt context.
29
30 The clock will automatically be freed when the device is unbound from
31 the bus.
32
34Kernel Hackers Manual 3.10 June 2019 DEVM_CLK_GET(9)