platform/x86: mlx-platform: Make activation of some drivers conditional
authorVadim Pasternak <vadimp@nvidia.com>
Mon, 11 Jul 2022 08:45:51 +0000 (11:45 +0300)
committerHans de Goede <hdegoede@redhat.com>
Thu, 14 Jul 2022 20:34:20 +0000 (22:34 +0200)
commite05d6b658fcd98bd3a09220cb5701e40269a0e57
treed6c5d7db1901e6e25680961ae11be43da6913f16
parentb644c95598adfe2b968e97daee3a890dd2fda84d
platform/x86: mlx-platform: Make activation of some drivers conditional

Current assumption in driver that any system is capable of LED,
hotplug or watchdog support. It could be not true for some new coming
systems.
Add validation for LED, hotplug, watchdog configuration and skip
activation of relevant drivers if not configured.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Oleksandr Shamray <oleksandrs@nvidia.com>
Link: https://lore.kernel.org/r/20220711084559.62447-2-vadimp@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c