]> git.itanic.dy.fi Git - linux-stable/commit
clk: keystone: pll: fix a couple NULL vs IS_ERR() checks
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 5 Oct 2023 14:01:57 +0000 (17:01 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Oct 2023 00:52:55 +0000 (17:52 -0700)
commita5d14f8b551eb1551c10053653ee8e27f19672fa
treecb35c3943e643a972374707a212d26deeb496ece
parent619102313466eaf8a6ac188e711f5df749dac6d4
clk: keystone: pll: fix a couple NULL vs IS_ERR() checks

The clk_register_divider() and clk_register_mux() functions returns
error pointers on error but this code checks for NULL.  Fix that.

Fixes: b9e0d40c0d83 ("clk: keystone: add Keystone PLL clock driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/d9da4c97-0da9-499f-9a21-1f8e3f148dc1@moroto.mountain
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/keystone/pll.c