Split hsmp.c into 2 exclusive driver one for ACPI object based probing and one probed as a platform device, provide Kconfig options to select one of them. Patch1: In preparation for the split. Create hsmp directory and necessary Kconfig and Makefile and move hsmp.c file to hsmp/ directory. There are no logical changes in this patch. Patch2: Split hsmp.c code into acpi.c, core.c and plat.c files acpi.c + core.c -> compile into ACPI based driver. plat.c + core.c -> compile into plat device based driver. Also, remove devm_* sysfs calls and uses dev_groups pointer in platform_driver structure. Suma Hegde (2): platform/x86/amd/hsmp: Create hsmp/ directory platform/x86/amd/hsmp: Split ACPI and non-ACPI code Documentation/arch/x86/amd_hsmp.rst | 60 +- MAINTAINERS | 2 +- arch/x86/include/asm/amd_hsmp.h | 2 +- drivers/platform/x86/amd/Kconfig | 14 +- drivers/platform/x86/amd/Makefile | 3 +- drivers/platform/x86/amd/hsmp.c | 988 ------------------------- drivers/platform/x86/amd/hsmp/Kconfig | 37 + drivers/platform/x86/amd/hsmp/Makefile | 13 + drivers/platform/x86/amd/hsmp/acpi.c | 301 ++++++++ drivers/platform/x86/amd/hsmp/core.c | 284 +++++++ drivers/platform/x86/amd/hsmp/hsmp.h | 66 ++ drivers/platform/x86/amd/hsmp/plat.c | 392 ++++++++++ 12 files changed, 1152 insertions(+), 1010 deletions(-) delete mode 100644 drivers/platform/x86/amd/hsmp.c create mode 100644 drivers/platform/x86/amd/hsmp/Kconfig create mode 100644 drivers/platform/x86/amd/hsmp/Makefile create mode 100644 drivers/platform/x86/amd/hsmp/acpi.c create mode 100644 drivers/platform/x86/amd/hsmp/core.c create mode 100644 drivers/platform/x86/amd/hsmp/hsmp.h create mode 100644 drivers/platform/x86/amd/hsmp/plat.c -- 2.25.1