summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2022-08-25 15:04:38 +0800
committerMark Brown <broonie@kernel.org>2022-08-25 12:29:35 +0100
commitd46f737208a45ddff2aef4b57218caa0476af2b6 (patch)
treed5d646250594a7a53af2f2feb9e1051bbd9fffed /drivers/regulator
parent48aa47308de609e687dc187b72de92e3346c4187 (diff)
downloadlinux-d46f737208a45ddff2aef4b57218caa0476af2b6.tar.bz2
regulator: drivers: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq_byname() already prints an error. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1986 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Link: https://lore.kernel.org/r/20220825070438.128093-1-yang.lee@linux.alibaba.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/tps65219-regulator.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/regulator/tps65219-regulator.c b/drivers/regulator/tps65219-regulator.c
index 7ba2594e437c..ab16e6665625 100644
--- a/drivers/regulator/tps65219-regulator.c
+++ b/drivers/regulator/tps65219-regulator.c
@@ -363,11 +363,9 @@ static int tps65219_regulator_probe(struct platform_device *pdev)
irq_type = &tps65219_regulator_irq_types[i];
irq = platform_get_irq_byname(pdev, irq_type->irq_name);
- if (irq < 0) {
- dev_err(tps->dev, "Failed to get IRQ %s: %d\n",
- irq_type->irq_name, irq);
+ if (irq < 0)
return -EINVAL;
- }
+
irq_data[i].dev = tps->dev;
irq_data[i].type = irq_type;