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>
This commit is contained in:
@@ -1489,7 +1489,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)
|
||||
pdev->name, i2c);
|
||||
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Cannot claim IRQ\n");
|
||||
dev_err_probe(&pdev->dev, ret, "Cannot claim IRQ\n");
|
||||
goto err_pm_disable;
|
||||
}
|
||||
|
||||
@@ -1510,7 +1510,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)
|
||||
|
||||
ret = xiic_reinit(i2c);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Cannot xiic_reinit\n");
|
||||
dev_err_probe(&pdev->dev, ret, "Cannot xiic_reinit\n");
|
||||
goto err_pm_disable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user