From: Suma Hegde Date: Mon, 4 Aug 2025 10:15:51 +0000 (+0000) Subject: platform/x86/amd/hsmp: Ensure success even if hwmon registration fails X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=de5cec220e4d45d7129e76f7d985c7b01f10f8d9;p=users%2Fjedix%2Flinux-maple.git 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 Reviewed-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20250804101551.89866-1-suma.hegde@amd.com Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/amd/hsmp/acpi.c b/drivers/platform/x86/amd/hsmp/acpi.c index 54986a752f7d4..a94009203e019 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 = {