On error, or when the passed parameter is NULL, the return value is NULL and not a PTR_ERR()-encoded value.
Signed-off-by: Paul Cercueil <p...@crapouillou.net> --- include/linux/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 266e8de3cb51..96031b5f6933 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -745,7 +745,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent); * @clk: clock source * * Returns struct clk corresponding to parent clock source, or - * valid IS_ERR() condition containing errno. + * NULL on error. */ struct clk *clk_get_parent(struct clk *clk); -- 2.30.1