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

clk: fix error check for devm_clk_get_optional()


If skip all return error number, it may skip some real error cases,
so only skip the error when the clock is not provided in DTS

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 5f82a940
No related branches found
No related tags found
Loading
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