public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: gpio: replace printk with dev_err in probe
@ 2026-03-20 12:26 Jovin Basil
  2026-03-20 15:01 ` Jovin Basil
  0 siblings, 1 reply; 5+ messages in thread
From: Jovin Basil @ 2026-03-20 12:26 UTC (permalink / raw)
  Cc: jovin555, Wolfram Sang, Andi Shyti, linux-i2c, linux-kernel

Signed-off-by: Jovin Basil <jovin555@gmail.com>
---
 drivers/i2c/busses/i2c-gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c
index f4355b17bfbf..f51f12c70a78 100644
--- a/drivers/i2c/busses/i2c-gpio.c
+++ b/drivers/i2c/busses/i2c-gpio.c
@@ -490,7 +490,7 @@ static int __init i2c_gpio_init(void)
 
 	ret = platform_driver_register(&i2c_gpio_driver);
 	if (ret)
-		printk(KERN_ERR "i2c-gpio: probe failed: %d\n", ret);
+		dev_err(&pdev->dev, "probe failed :%d\n",ret);
 
 	return ret;
 }
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-21 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 12:26 [PATCH] i2c: gpio: replace printk with dev_err in probe Jovin Basil
2026-03-20 15:01 ` Jovin Basil
2026-03-20 21:16   ` Wolfram Sang
2026-03-21 22:22   ` kernel test robot
2026-03-21 23:05   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox