hwmon: (gpd-fan): upgrade log level from warn to err for platform device creation failure

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@kylinos.cn>
Link: https://lore.kernel.org/r/aeb2eaa6df90178b18057a8022a0eccde7bbc82c.1781055639.git.xiaopei01@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Pei Xiao 2026-06-10 09:49:11 +08:00 committed by Guenter Roeck
parent a8a444917f
commit 046e6e1a02

View File

@ -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);
}