diff options
| author | Pei Xiao <xiaopei01@kylinos.cn> | 2026-06-10 09:49:11 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-06-10 06:14:20 -0700 |
| commit | 046e6e1a023437bf80358cecba37ea58ebe89e94 (patch) | |
| tree | 60de3e6d20dd26522fa505fc9fe53ad8d428cd63 /drivers/hwmon | |
| parent | a8a444917fe5d30a9787f41cc179f55fc5f559d3 (diff) | |
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>
Diffstat (limited to 'drivers/hwmon')
| -rw-r--r-- | drivers/hwmon/gpd-fan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
