]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:17 +0000 (11:08 +0100)
commitf45fff806ebb6cfa8b64da241ffa23ff4f6cc26e
tree744bbfb90cb48790bbf3d3733dae7ef8c3336d97
parent7ff8ca9beefbd5be033a41c0de4dffcea12a8e5a
clk: keystone: pll: fix a couple NULL vs IS_ERR() checks

[ Upstream commit a5d14f8b551eb1551c10053653ee8e27f19672fa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/keystone/pll.c