Skip to content
Unverified Commit dc62f951 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

regulator: stm32-pwr: Fix return value check in stm32_pwr_regulator_probe()



In case of error, the function of_iomap() returns NULL pointer not
ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: 6cdae817 ("regulator: Add support for stm32 power regulators")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 82f26185
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment