diff options
| author | Patrick Delaunay <[email protected]> | 2022-01-24 14:17:14 +0100 |
|---|---|---|
| committer | Sean Anderson <[email protected]> | 2022-02-25 01:41:04 -0500 |
| commit | b0cdd8287add19d1af6668b6e9e968046506c08d (patch) | |
| tree | 3446e3d4eabf01f039cc57b4ea566b1cb9b1e07b /doc/develop/python_cq.rst | |
| parent | e96e2132f977aab738994c11162b14695029be6e (diff) | |
clk: ccf: correct the test on the parent uclass in clk_enable/clk_disable
It is safe to check if the uclass id on the device is UCLASS_CLK
before to call the clk_ functions, but today this comparison is
not done on the device used in API: clkp->dev->parent
but on the device himself: clkp->dev.
This patch corrects this behavior and tests if the parent device
is a clock device before to call the clock API, clk_enable or
clk_disable, on this device.
Fixes: 0520be0f67e3 ("clk: prograte clk enable/disable to parent")
Signed-off-by: Patrick Delaunay <[email protected]>
Reviewed-by: Sean Anderson <[email protected]>
Diffstat (limited to 'doc/develop/python_cq.rst')
0 files changed, 0 insertions, 0 deletions
