Skip to content
Commit c4b52fda authored by Yang Xiwen's avatar Yang Xiwen Committed by Sean Anderson
Browse files

clk: also handle ENOENT in *_optional functions



If the device does not specify any clocks in device tree, these
functions will return PTR_ERR(-ENOENT). This is not the intended
behavior and does not comply with linux kernel CCF. Fix that by
returning NULL under such circumstances instead.

Signed-off-by: default avatarYang Xiwen <forbidden405@outlook.com>
Reviewed-by: default avatarSean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20230818-clk-fix-v1-3-49ec18f820bf@outlook.com
parent 0755db47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment