DEVM_GET_CLK_FROM_CH(9)

NAME
devm_get_clk_from_child - lookup and obtain a managed reference to a clock producer from child node.

SYNOPSIS

struct clk * devm_get_clk_from_child(struct device * dev, struct device_node * np, const char * con_id);

ARGUMENTS

dev
    device for clock “consumer”

np
    pointer to clock consumer node

con_id
    clock consumer ID

DESCRIPTION

This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using np and con_id

The clock will automatically be freed when the device is unbound from the bus.

COPYRIGHT