platform: mellanox: mlx-platform: Prepare driver to allow probing through ACPI infras...
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Aug 2023 11:34:45 +0000 (11:34 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Aug 2023 15:31:29 +0000 (17:31 +0200)
commit222954493cafda3b25aa1c467c9e5eb77474abb9
tree84019a5fc393b71a269f2b3af04678440f24caae
parentb411dc55a735337a9d7c7dad605bad79e7266104
platform: mellanox: mlx-platform: Prepare driver to allow probing through ACPI infrastructure

Currently driver is activated through DMI hooks.
Prepare driver to allow activation also through ACPI trigger.

Modify mlxplat_init()/mlxplat_exit() routines.
Add mlxplat_probe()/mlxplat_remove() routines and "mlxplat_driver"
structure.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.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/20230822113451.13785-11-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c