]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hwmon: (gpd-fan): upgrade log level from warn to err for platform device creation...
authorPei Xiao <xiaopei01@kylinos.cn>
Wed, 10 Jun 2026 01:49:11 +0000 (09:49 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 10 Jun 2026 13:14:20 +0000 (06:14 -0700)
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>
drivers/hwmon/gpd-fan.c

index 745b3fb9e3a49df96ebe59a65354f674deb21748..1b57a5add934fff23500403db1b446353c0e3fdb 100644 (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);
        }