clk: imx: pll14xx: Return error if pll type is invalid
Subsystems (3)
PATCH 1/1 clk: imx: pll14xx: Return error if pll type is invalid
When pll type is invalid, ONLY output error message is NOT enough, should return error immediately.
Signed-off-by Anson Huang <[email protected]>
--- drivers/clk/imx/clk-pll14xx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/clk/imx/clk-pll14xx.c +2 -0
@@ -410,6 +410,8 @@ struct clk_hw *imx_clk_hw_pll14xx(const char *name, const char *parent_name,default :pr_err ("%s: Unknown pll type for pll clk %s\n" , __func__, name); +kfree (pll); +return ERR_PTR (-EINVAL ); }; pll->base = base;
Signature · 1 line
2.7.4
Quoting Anson Huang (2020-02-20 22:31:56)
Quoted 5 lines
When pll type is invalid, ONLY output error message is NOT enough, should return error immediately.
Signed-off-by Anson Huang <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>
Shawn Guo
AppliedQuoted 4 lines · Anson Huang
When pll type is invalid, ONLY output error message is NOT enough, should return error immediately.
Signed-off-by Anson Huang <[email protected]>
Applied, thanks.