]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: tps65219: regulator: tps65219: Fix error codes in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 19 Aug 2025 09:40:41 +0000 (12:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:47 +0000 (16:34 +0200)
commit74605d602bce3ca866d8e8f02bfffba4b9b1a017
tree3e73176dae0529f05fa649cc7b33379d195d6c9f
parentd5b6f0cbb787439db7ec0c575e4c239ec6b5ba5f
regulator: tps65219: regulator: tps65219: Fix error codes in probe()

[ Upstream commit 11cd7a5c21db020b8001aedcae27bd3fa9e1e901 ]

There is a copy and paste error and we accidentally use "PTR_ERR(rdev)"
instead of "error".  The "rdev" pointer is valid at this point.

Also there is no need to print the error code in the error message
because dev_err_probe() already prints that.  So clean up the error
message a bit.

Fixes: 38c9f98db20a ("regulator: tps65219: Add support for TPS65215 Regulator IRQs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aKRGmVdbvT1HBvm8@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/tps65219-regulator.c