summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuma Hegde <suma.hegde@amd.com>2025-08-04 10:15:51 +0000
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-08-12 15:05:42 +0300
commitde5cec220e4d45d7129e76f7d985c7b01f10f8d9 (patch)
tree031d624602406d2ebd56d2ec9cbd871bcfab2d6d
parent2c78fb287e1f430b929f2e49786518350d15605c (diff)
platform/x86/amd/hsmp: Ensure success even if hwmon registration fails
Even if hwmon registration fails, HSMP remains accessible through the device file, so the operation should return success. Signed-off-by: Suma Hegde <suma.hegde@amd.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20250804101551.89866-1-suma.hegde@amd.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
-rw-r--r--drivers/platform/x86/amd/hsmp/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd/hsmp/acpi.c b/drivers/platform/x86/amd/hsmp/acpi.c
index 54986a752f7d..a94009203e01 100644
--- a/drivers/platform/x86/amd/hsmp/acpi.c
+++ b/drivers/platform/x86/amd/hsmp/acpi.c
@@ -504,7 +504,7 @@ static int init_acpi(struct device *dev)
dev_set_drvdata(dev, &hsmp_pdev->sock[sock_ind]);
- return ret;
+ return 0;
}
static const struct bin_attribute hsmp_metric_tbl_attr = {