Skip to content

Commit d46f737

Browse files
Yang Libroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Yang Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 48aa473 commit d46f737

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/regulator/tps65219-regulator.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,9 @@ static int tps65219_regulator_probe(struct platform_device *pdev)
363363
irq_type = &tps65219_regulator_irq_types[i];
364364

365365
irq = platform_get_irq_byname(pdev, irq_type->irq_name);
366-
if (irq < 0) {
367-
dev_err(tps->dev, "Failed to get IRQ %s: %d\n",
368-
irq_type->irq_name, irq);
366+
if (irq < 0)
369367
return -EINVAL;
370-
}
368+
371369
irq_data[i].dev = tps->dev;
372370
irq_data[i].type = irq_type;
373371

0 commit comments

Comments
 (0)