Skip to content

Commit e7d8a0d

Browse files
zandaeAndi Shyti
authored andcommitted
i2c: i2c-xiic: Replace dev_err() with dev_err_probe() in probe function
This simplifies the code while improving log. Signed-off-by: Enrico Zanda <e.zanda1@gmail.com> Link: https://lore.kernel.org/r/20250415183447.396277-10-e.zanda1@gmail.com Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 26e3e92 commit e7d8a0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/i2c/busses/i2c-xiic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)
14891489
pdev->name, i2c);
14901490

14911491
if (ret < 0) {
1492-
dev_err(&pdev->dev, "Cannot claim IRQ\n");
1492+
dev_err_probe(&pdev->dev, ret, "Cannot claim IRQ\n");
14931493
goto err_pm_disable;
14941494
}
14951495

@@ -1510,7 +1510,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)
15101510

15111511
ret = xiic_reinit(i2c);
15121512
if (ret < 0) {
1513-
dev_err(&pdev->dev, "Cannot xiic_reinit\n");
1513+
dev_err_probe(&pdev->dev, ret, "Cannot xiic_reinit\n");
15141514
goto err_pm_disable;
15151515
}
15161516

0 commit comments

Comments
 (0)