提交 fc6b1f3d 编写于 作者: S Srinivas Kandagatla 提交者: Greg Kroah-Hartman

slimbus: qcom: add HAS_IOMEM dependency

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: NThomas Meyer <thomas@m3y3r.de>
Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ff595a33
...@@ -16,6 +16,7 @@ if SLIMBUS ...@@ -16,6 +16,7 @@ if SLIMBUS
config SLIM_QCOM_CTRL config SLIM_QCOM_CTRL
tristate "Qualcomm SLIMbus Manager Component" tristate "Qualcomm SLIMbus Manager Component"
depends on SLIMBUS depends on SLIMBUS
depends on HAS_IOMEM
help help
Select driver if Qualcomm's SLIMbus Manager Component is Select driver if Qualcomm's SLIMbus Manager Component is
programmed using Linux kernel. programmed using Linux kernel.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册