X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors
@ 2025-08-13 19:13 Wolfram Sang
  2025-08-15 15:50 ` Yen-Chi Huang
  2025-08-28 12:08 ` Ilpo Järvinen
  0 siblings, 2 replies; 5+ messages in thread
From: Wolfram Sang @ 2025-08-13 19:13 UTC (permalink / raw)
  To: platform-driver-x86
  Cc: Wolfram Sang, Yen-Chi Huang, Hans de Goede, Ilpo Järvinen

The watchdog core will handle error messages already.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Change since v1: simplified more into a single return statement

 drivers/platform/x86/portwell-ec.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/platform/x86/portwell-ec.c b/drivers/platform/x86/portwell-ec.c
index 322f296e9315..b603e68c82e9 100644
--- a/drivers/platform/x86/portwell-ec.c
+++ b/drivers/platform/x86/portwell-ec.c
@@ -237,13 +237,7 @@ static int pwec_probe(struct platform_device *pdev)
 	}
 
 	ec_wdt_dev.parent = &pdev->dev;
-	ret = devm_watchdog_register_device(&pdev->dev, &ec_wdt_dev);
-	if (ret < 0) {
-		dev_err(&pdev->dev, "failed to register Portwell EC Watchdog\n");
-		return ret;
-	}
-
-	return 0;
+	return devm_watchdog_register_device(&pdev->dev, &ec_wdt_dev);
 }
 
 static struct platform_driver pwec_driver = {
-- 
2.47.2


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

end of thread, other threads:[~2025-08-28 12:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 19:13 [PATCH v2] platform/x86: portwell-ec: don't print superfluous errors Wolfram Sang
2025-08-15 15:50 ` Yen-Chi Huang
2025-08-18 11:50   ` Ilpo Järvinen
2025-08-20 11:01     ` Yen-Chi Huang
2025-08-28 12:08 ` Ilpo Järvinen

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