platform/x86/amd/hsmp: Move dev from platdev to hsmp_socket
authorSuma Hegde <suma.hegde@amd.com>
Sat, 6 Jan 2024 02:25:26 +0000 (02:25 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 31 Jan 2024 08:26:12 +0000 (10:26 +0200)
commitce08d3570ae0ef3e8b011d8bd4722b7b413c476b
tree39c19c2d6776d2f267e8aeef8af5089a9f99b376
parent17998b3e529bf161bb6ab52c7aafb8a9e2270a7f
platform/x86/amd/hsmp: Move dev from platdev to hsmp_socket

On an ACPI enabled platforms the probe is called for each socket
and the struct dev is different for each socket. This change
will help in handling both ACPI and non-ACPI platforms.

Also change pr_err() to dev_err() API.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240106022532.1746932-5-suma.hegde@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp.c