linux/drivers/clk/mmp
Charles Han 00153c64a7 clk: mmp: Fix NULL vs IS_ERR() check
The devm_kzalloc() function returns NULL on error, not error pointers.
Fix the check.

Fixes: 03437e857b ("clk: mmp: Add Marvell PXA1908 APMU driver")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Link: https://lore.kernel.org/r/20250307064708.209511-1-hanchunchao@inspur.com
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2025-03-07 11:05:01 -08:00
..
Makefile clk: mmp: Add Marvell PXA1908 MPMU driver 2024-11-14 14:33:02 -08:00
clk-apbc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-apmu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-audio.c clk: Switch back to struct platform_driver::remove() 2024-09-21 14:12:05 -07:00
clk-frac.c clk: mmp: Switch to use struct u32_fract instead of custom one 2024-11-14 14:32:50 -08:00
clk-gate.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 2) 2022-06-10 14:51:35 +02:00
clk-mix.c clk: mmp: Switch to use kmemdup_array() 2024-08-14 17:37:25 -07:00
clk-of-mmp2.c clk: mmp: Switch to use struct u32_fract instead of custom one 2024-11-14 14:32:50 -08:00
clk-of-pxa168.c clk: mmp: Switch to use struct u32_fract instead of custom one 2024-11-14 14:32:50 -08:00
clk-of-pxa910.c clk: mmp: Switch to use struct u32_fract instead of custom one 2024-11-14 14:32:50 -08:00
clk-of-pxa1928.c clk: mmp: Switch to use struct u32_fract instead of custom one 2024-11-14 14:32:50 -08:00
clk-pll.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -07:00
clk-pxa1908-apbc.c clk: mmp: pxa1908-apbc: Fix NULL vs IS_ERR() check 2024-12-03 12:02:25 -08:00
clk-pxa1908-apbcp.c clk: mmp: pxa1908-apbcp: Fix a NULL vs IS_ERR() check 2024-12-03 12:01:42 -08:00
clk-pxa1908-apmu.c clk: mmp: Fix NULL vs IS_ERR() check 2025-03-07 11:05:01 -08:00
clk-pxa1908-mpmu.c clk: mmp: pxa1908-mpmu: Fix a NULL vs IS_ERR() check 2024-12-03 12:01:07 -08:00
clk.c clk: mmp2: fix link error without mmp2 2020-04-13 12:20:06 -07:00
clk.h clk: mmp: Switch to use struct u32_fract instead of custom one 2024-11-14 14:32:50 -08:00
pwr-island.c clk: mmp2: call pm_genpd_init() only after genpd.name is set 2025-01-08 11:13:48 -08:00
reset.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
reset.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00