[PATCH v4 3/4] hwmon: (gpd-fan): upgrade log level from warn to err for platform device creation failure
From: Pei Xiao
Date: Tue Jun 09 2026 - 21:53:18 EST
When platform_create_bundle() fails, the error is fatal and prevents the
driver from loading. Use pr_err() instead of pr_warn() to clearly indicate
a critical failure.
Signed-off-by: Pei Xiao <xiaopei01@xxxxxxxxxx>
---
changes in v4:
No changes.
changes in v3:
1.Add v3 tag.
changes in v2:
1.No changes.
---
drivers/hwmon/gpd-fan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/gpd-fan.c b/drivers/hwmon/gpd-fan.c
index 745b3fb9e3a4..1b57a5add934 100644
--- a/drivers/hwmon/gpd-fan.c
+++ b/drivers/hwmon/gpd-fan.c
@@ -712,7 +712,7 @@ static int __init gpd_fan_init(void)
match, sizeof(*match));
if (IS_ERR(gpd_fan_platform_device)) {
- pr_warn("Failed to create platform device\n");
+ pr_err("Failed to create platform device\n");
return PTR_ERR(gpd_fan_platform_device);
}
--
2.25.1