summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-hi655x.c
diff options
context:
space:
mode:
authorMatti Vaittinen2018-12-04 12:34:53 +0100
committerStephen Boyd2018-12-05 18:18:33 +0100
commit05502bf9eb7a7297f5fa6f1d17b169b3d5b53570 (patch)
tree6b0154830af71c102de23cfcac04c4750a2851dd /drivers/clk/clk-hi655x.c
parentclk: Add kerneldoc to managed of-provider interfaces (diff)
downloadkernel-qcow2-linux-05502bf9eb7a7297f5fa6f1d17b169b3d5b53570.tar.gz
kernel-qcow2-linux-05502bf9eb7a7297f5fa6f1d17b169b3d5b53570.tar.xz
kernel-qcow2-linux-05502bf9eb7a7297f5fa6f1d17b169b3d5b53570.zip
clk: of-provider: look at parent if registered device has no provider info
It seems to be usual for MFD devices that the created 'clock sub-device' do not have own DT node. The clock provider information is usually in the main device node which is owned by the MFD device. Change the devm variant of clk of-provider registration to check the parent device node if given device has no own node or if the node does not contain the #clock-cells property. In such case use the parent node if it contains the #clock-cells. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> [sboyd@kernel.org: Add some comment in the code and pull out logic into a single function to return the provider device_node pointer] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-hi655x.c')
0 files changed, 0 insertions, 0 deletions