[RESEND PATCH 3/7] clk: check valid clock by clk_valid()

Simon Glass sjg at chromium.org
Sat Dec 28 03:27:16 CET 2019


On Sun, 15 Dec 2019 at 20:14, Chunfeng Yun <chunfeng.yun at mediatek.com> wrote:
>
> Add valid check for clk->dev, it's useful when get optional
> clock even when the clk point is valid, but its dev will be
> NULL.
>
> Signed-off-by: Chunfeng Yun <chunfeng.yun at mediatek.com>
> ---
>  drivers/clk/clk-uclass.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list