WSL2-Linux-Kernel/drivers/soc/imx
Miaoqian Lin 7b33accc8f soc: imx8m: Fix incorrect check for of_clk_get_by_name()
[ Upstream commit 490748874e ]

of_clk_get_by_name() returns error pointers instead of NULL.
Use IS_ERR() checks the return value to catch errors.

Fixes: 836fb30949 ("soc: imx8m: Enable OCOTP clock before reading the register")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:27:04 +01:00
..
Kconfig
Makefile
gpc.c
gpcv2.c soc: imx: gpcv2: Assert reset before ungating clock 2022-09-15 11:30:03 +02:00
soc-imx.c soc: imx: Register SoC device only on i.MX boards 2021-12-22 09:32:39 +01:00
soc-imx8m.c soc: imx8m: Fix incorrect check for of_clk_get_by_name() 2023-02-01 08:27:04 +01:00