diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-01-11 10:26:58 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-01-11 13:48:49 +0000 |
commit | 879cf8006475642b747aaaa4d06f7044ab2de794 (patch) | |
tree | 0436c3ca8be5fb37c4d75376ad2bc130f8d4e1a2 /drivers/regulator/da9052-regulator.c | |
parent | bfff546aae50ae68ed395bf0e0848188d27b0ba3 (diff) |
regulator: max20086: fix error code in max20086_parse_regulators_dt()
This code accidentally returns PTR_ERR(NULL) which is success. It
should return a negative error code.
Fixes: bfff546aae50 ("regulator: Add MAX20086-MAX20089 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20220111072657.GK11243@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/da9052-regulator.c')
0 files changed, 0 insertions, 0 deletions