linux/drivers/clk/x86
Rahul Tanwar 7256d1f461 clk: mxl: syscon_node_to_regmap() returns error pointers
Commit 036177310b ("clk: mxl: Switch from direct readl/writel based IO
to regmap based IO") introduced code resulting in below warning issued
by the smatch static checker.

  drivers/clk/x86/clk-lgm.c:441 lgm_cgu_probe() warn: passing zero to 'PTR_ERR'

Fix the warning by replacing incorrect IS_ERR_OR_NULL() with IS_ERR().

Fixes: 036177310b ("clk: mxl: Switch from direct readl/writel based IO to regmap based IO")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rahul Tanwar <rtanwar@maxlinear.com>
Link: https://lore.kernel.org/r/49e339d4739e4ae4c92b00c1b2918af0755d4122.1666695221.git.rtanwar@maxlinear.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2022-10-26 17:39:33 -07:00
..
clk-cgu-pll.c clk: mxl: Remove redundant spinlocks 2022-10-17 14:17:37 -07:00
clk-cgu.c clk: mxl: Fix a clk entry by adding relevant flags 2022-10-17 15:27:48 -07:00
clk-cgu.h clk: mxl: Fix a clk entry by adding relevant flags 2022-10-17 15:27:48 -07:00
clk-fch.c clk: x86: Fix clk_gate_flags for RV_CLK_GATE 2022-01-06 17:57:53 -08:00
clk-lgm.c clk: mxl: syscon_node_to_regmap() returns error pointers 2022-10-26 17:39:33 -07:00
clk-lpss-atom.c clk: x86: Rename clk-lpt to more specific clk-lpss-atom 2021-07-27 14:03:47 -07:00
clk-pmc-atom.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
Kconfig clk: mxl: Switch from direct readl/writel based IO to regmap based IO 2022-10-17 14:17:37 -07:00
Makefile platform/x86: Drop the PMC_ATOM Kconfig option 2022-06-12 14:41:22 +02:00