slimbus: qcom: add HAS_IOMEM dependency
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 3 Jan 2018 09:32:04 +0000 (09:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 16:01:15 +0000 (17:01 +0100)
Below build failure was reported on UML,
ERROR: "devm_ioremap_resource" [drivers/slimbus/slim-qcom-ctrl.ko] undefined!
ERROR: "__ioread32_copy" [drivers/slimbus/slim-qcom-ctrl.ko] undefined!
ERROR: "__iowrite32_copy" [drivers/slimbus/slim-qcom-ctrl.ko] undefined!
ERROR: "devm_ioremap" [drivers/slimbus/slim-qcom-ctrl.ko] undefined!

This patch fixes it by making qcom slimbus depend on HAS_IOMEM, as
these are only defined when HAS_IOMEM is selected.

Reported-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/Kconfig

index 78bdd4808282569532e44fb6ab406381345b2620..1a632fad597e188c0338fafb7f50d03ae7d5bfab 100644 (file)
@@ -16,6 +16,7 @@ if SLIMBUS
 config SLIM_QCOM_CTRL
        tristate "Qualcomm SLIMbus Manager Component"
        depends on SLIMBUS
+       depends on HAS_IOMEM
        help
          Select driver if Qualcomm's SLIMbus Manager Component is
          programmed using Linux kernel.