summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShree Ramamoorthy <[email protected]>2024-12-18 11:12:35 -0600
committerJaehoon Chung <[email protected]>2025-01-14 07:44:30 +0900
commiteda65fa42b95bf83363dd07451f760d1213793ac (patch)
tree70d2b27a3e7ea62c04e21daf1a504fcfec2350d1
parent6a0db9ee030f634731b792d864fc7a9df6cc6b80 (diff)
power: regulator: replace printf() with pr_err()
Replace printf() with pr_err() because pr_err() has a uniform print format and takes into consideration the log levels supported. Signed-off-by: Shree Ramamoorthy <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
-rw-r--r--drivers/power/regulator/tps65219_regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/regulator/tps65219_regulator.c b/drivers/power/regulator/tps65219_regulator.c
index b7124fed024..4b0fb205909 100644
--- a/drivers/power/regulator/tps65219_regulator.c
+++ b/drivers/power/regulator/tps65219_regulator.c
@@ -250,7 +250,7 @@ static int tps65219_ldo_probe(struct udevice *dev)
/* idx must be in 1..TPS65219_LDO_NUM */
idx = dev->driver_data;
if (idx < 1 || idx > TPS65219_LDO_NUM) {
- printf("Wrong ID for regulator\n");
+ pr_err("Wrong ID for regulator\n");
return -EINVAL;
}
@@ -271,7 +271,7 @@ static int tps65219_buck_probe(struct udevice *dev)
/* idx must be in 1..TPS65219_BUCK_NUM */
idx = dev->driver_data;
if (idx < 1 || idx > TPS65219_BUCK_NUM) {
- printf("Wrong ID for regulator\n");
+ pr_err("Wrong ID for regulator\n");
return -EINVAL;
}