habanalabs: adjust Kconfig to fix build errors
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 2 Mar 2019 09:32:12 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Mar 2019 11:03:56 +0000 (12:03 +0100)
commit142a0f83b216a607aebed42e54a1be620765e28c
tree20b517636a912f2f179069ff8518e5aecdc1544d
parentdbbe358b13706d86d1945a010f5d2a34b8c81d06
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>
drivers/misc/habanalabs/Kconfig