]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMark Brown <broonie@kernel.org>
Tue, 19 Aug 2025 15:51:03 +0000 (16:51 +0100)
commit11cd7a5c21db020b8001aedcae27bd3fa9e1e901
treebe67801b61f8c391a6895df7e408dcbe96017b1f
parent447be50598c05499f7ccc2b1f6ddb3da30f8099a
regulator: tps65219: regulator: tps65219: Fix error codes in probe()

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>
drivers/regulator/tps65219-regulator.c