mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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:
parent
a8a444917f
commit
046e6e1a02
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user