diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-08-19 12:40:41 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-08-19 16:51:03 +0100 |
commit | 11cd7a5c21db020b8001aedcae27bd3fa9e1e901 (patch) | |
tree | be67801b61f8c391a6895df7e408dcbe96017b1f /rust/kernel/error.rs | |
parent | 447be50598c05499f7ccc2b1f6ddb3da30f8099a (diff) |
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>
Diffstat (limited to 'rust/kernel/error.rs')
0 files changed, 0 insertions, 0 deletions