diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-03-02 11:32:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-02 12:03:56 +0100 |
commit | 142a0f83b216a607aebed42e54a1be620765e28c (patch) | |
tree | 20b517636a912f2f179069ff8518e5aecdc1544d | |
parent | dbbe358b13706d86d1945a010f5d2a34b8c81d06 (diff) |
habanalabs: adjust Kconfig to fix build errors
The driver use the HWMON framework to display various sensors information.
Therefore, CONFIG_HWMON must be included to prevent build errors.
This patch adds "select HWMON" to the driver's Kconfig file to make sure
HWMON is built. In addition, to avoid breaking dependencies, it adds
dependency on HAS_IOMEM because HWMON is dependent on HAS_IOMEM.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/habanalabs/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/Kconfig b/drivers/misc/habanalabs/Kconfig index a7cbc1fb6957..99db2b82ada6 100644 --- a/drivers/misc/habanalabs/Kconfig +++ b/drivers/misc/habanalabs/Kconfig @@ -4,10 +4,11 @@ config HABANA_AI tristate "HabanaAI accelerators (habanalabs)" - depends on PCI + depends on PCI && HAS_IOMEM select FRAME_VECTOR select DMA_SHARED_BUFFER select GENERIC_ALLOCATOR + select HWMON help Enables PCIe card driver for Habana's AI Processors (AIP) that are designed to accelerate Deep Learning inference and training workloads. |