[PATCH 2/3] hwmon: (gpd-fan): upgrade log level from warn to err for platform device creation failure

From: Pei Xiao

Date: Sun Apr 05 2026 - 04:40:45 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>
---
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 5a9d07cd29ab..7df46027177d 100644
--- a/drivers/hwmon/gpd-fan.c
+++ b/drivers/hwmon/gpd-fan.c
@@ -714,7 +714,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