commit | bd7c798605a33107ccce6d5023af8adf9febc4f1 | [log] [tgz] |
---|---|---|
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | Thu Jan 09 11:35:06 2020 +0800 |
committer | Tom Rini <trini@konsulko.com> | Thu Jan 16 09:39:45 2020 -0500 |
tree | d6f710a54eb37167b042f5e6c2557841c5a2bd26 | |
parent | 0f9b2b3ddf36d4bf69011a0dddefa10091cee60d [diff] |
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: Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ryder Lee <ryder.lee@mediatek.com>