Skip to content

Commit 754a143

Browse files
committed
platform/x86/amd/hsmp: Ensure success even if hwmon registration fails
JIRA: https://issues.redhat.com/browse/RHEL-102859 commit de5cec2 Author: Suma Hegde <suma.hegde@amd.com> Date: Mon Aug 4 10:15:51 2025 +0000 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> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent 93cac41 commit 754a143

File tree

1 file changed

+1
-1
lines changed
  • drivers/platform/x86/amd/hsmp

1 file changed

+1
-1
lines changed

drivers/platform/x86/amd/hsmp/acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ static int init_acpi(struct device *dev)
504504

505505
dev_set_drvdata(dev, &hsmp_pdev->sock[sock_ind]);
506506

507-
return ret;
507+
return 0;
508508
}
509509

510510
static struct bin_attribute hsmp_metric_tbl_attr = {

0 commit comments

Comments
 (0)