platform/x86/amd/hsmp: Create static func to handle platdev
authorSuma Hegde <suma.hegde@amd.com>
Sat, 6 Jan 2024 02:25:24 +0000 (02:25 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 25 Jan 2024 12:51:17 +0000 (14:51 +0200)
commite76064e34a371731e3f0da13ffbda16f6e51a202
tree462869afdf80f0456e13af7a7e2aff62a5c63617
parent287a821c76be80d69d9a82a94147d0daa5232a4b
platform/x86/amd/hsmp: Create static func to handle platdev

Create a static function and call platform device alloc and add device,
which will simplify handling acpi and plat device probing.

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-3-suma.hegde@amd.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp.c