]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: mmp: pxa1908-mpmu: Fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 20 Nov 2024 17:18:50 +0000 (20:18 +0300)
committerStephen Boyd <sboyd@kernel.org>
Tue, 3 Dec 2024 20:01:07 +0000 (12:01 -0800)
commit7def56f841af22e07977e193eea002e085facbdb
tree1ca89537de685060d1df0a603b166921c9ac0ce7
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
clk: mmp: pxa1908-mpmu: Fix a NULL vs IS_ERR() check

The devm_kzalloc() function returns NULL on error, not error pointers.
Update the check to match.

Fixes: ebac87cdd230 ("clk: mmp: Add Marvell PXA1908 MPMU driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/5b3b963d-ecae-4819-be47-d82e8a58e64b@stanley.mountain
Acked-by: Duje Mihanović <duje.mihanovic@skole.hr>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mmp/clk-pxa1908-mpmu.c