Skip to content
Snippets Groups Projects
Commit bd7c7986 authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Tom Rini
Browse files

clk: check valid clock by clk_valid()


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: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarRyder Lee <ryder.lee@mediatek.com>
parent 0f9b2b3d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment