mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 84be8adb628ff920ae94a57e380dfbbad3d95997 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Fri, 6 May 2022 15:34:44 +0100
|
|
Subject: [PATCH 420/726] thermal: broadcom: Use dev_err_probe to suppress
|
|
defer errors
|
|
|
|
It is quite common for the devm_thermal_zone_of_sensor_register
|
|
to need to defer, so avoid spamming the log by using
|
|
dev_err_probe instead of dev_err.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/thermal/broadcom/bcm2711_thermal.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/thermal/broadcom/bcm2711_thermal.c b/drivers/thermal/broadcom/bcm2711_thermal.c
|
|
index 1f8651d15160..3694e64fd308 100644
|
|
--- a/drivers/thermal/broadcom/bcm2711_thermal.c
|
|
+++ b/drivers/thermal/broadcom/bcm2711_thermal.c
|
|
@@ -92,7 +92,7 @@ static int bcm2711_thermal_probe(struct platform_device *pdev)
|
|
&bcm2711_thermal_of_ops);
|
|
if (IS_ERR(thermal)) {
|
|
ret = PTR_ERR(thermal);
|
|
- dev_err(dev, "could not register sensor: %d\n", ret);
|
|
+ dev_err_probe(dev, ret, "could not register sensor: %d\n", ret);
|
|
return ret;
|
|
}
|
|
|
|
--
|
|
2.33.1
|
|
|