Patrick Delaunay b0cdd8287a 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 <patrick.delaunay@foss.st.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
2022-02-25 01:41:04 -05:00
..
2022-01-19 18:11:34 +01:00
2021-01-30 14:25:41 -07:00
2022-01-19 18:11:34 +01:00
2022-01-18 12:48:17 -05:00
2022-01-13 07:57:49 -05:00
2021-11-23 13:53:03 -05:00
2022-01-13 07:57:49 -05:00
2022-01-13 07:57:49 -05:00
2022-02-25 01:41:04 -05:00