]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: replace dev_dbg() by dev_err() in regulator_post_bind()
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 3 Dec 2024 10:06:11 +0000 (11:06 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 4 Dec 2024 22:31:31 +0000 (07:31 +0900)
To ease debugging, use dev_err() instead of dev_dbg() for
alerting when regulator has nonunique value.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/regulator/regulator-uclass.c

index 80ea5e65d488e52713ada6a4c4cd5c368f27cefa..09567eb9dbb6c755fcd23f31e5ed33270814a885 100644 (file)
@@ -446,7 +446,7 @@ static int regulator_post_bind(struct udevice *dev)
        }
 
        if (!regulator_name_is_unique(dev, uc_pdata->name)) {
-               dev_dbg(dev, "'%s' has nonunique value: '%s\n",
+               dev_err(dev, "'%s' has nonunique value: '%s\n",
                        property, uc_pdata->name);
                return -EINVAL;
        }