mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
platform/x86/amd/hsmp: Replace dev_err() with dev_info() for non-fatal errors
Failure in metric table initialization and hwmon registration are non-fatal errors. Hence replace them with dev_info(). Signed-off-by: Suma Hegde <suma.hegde@amd.com> Link: https://lore.kernel.org/r/20250807114203.982860-1-suma.hegde@amd.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
ba9eddc43f
commit
ee1cb9b0e6
|
|
@ -495,12 +495,12 @@ static int init_acpi(struct device *dev)
|
|||
if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) {
|
||||
ret = hsmp_get_tbl_dram_base(sock_ind);
|
||||
if (ret)
|
||||
dev_err(dev, "Failed to init metric table\n");
|
||||
dev_info(dev, "Failed to init metric table\n");
|
||||
}
|
||||
|
||||
ret = hsmp_create_sensor(dev, sock_ind);
|
||||
if (ret)
|
||||
dev_err(dev, "Failed to register HSMP sensors with hwmon\n");
|
||||
dev_info(dev, "Failed to register HSMP sensors with hwmon\n");
|
||||
|
||||
dev_set_drvdata(dev, &hsmp_pdev->sock[sock_ind]);
|
||||
|
||||
|
|
|
|||
|
|
@ -189,13 +189,13 @@ static int init_platform_device(struct device *dev)
|
|||
if (hsmp_pdev->proto_ver == HSMP_PROTO_VER6) {
|
||||
ret = hsmp_get_tbl_dram_base(i);
|
||||
if (ret)
|
||||
dev_err(dev, "Failed to init metric table\n");
|
||||
dev_info(dev, "Failed to init metric table\n");
|
||||
}
|
||||
|
||||
/* Register with hwmon interface for reporting power */
|
||||
ret = hsmp_create_sensor(dev, i);
|
||||
if (ret)
|
||||
dev_err(dev, "Failed to register HSMP sensors with hwmon\n");
|
||||
dev_info(dev, "Failed to register HSMP sensors with hwmon\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user