The helper function devm_platform_ioremap_resource()
needs HAS_IOMEM enabled, so add the dependency on HAS_IOMEM.
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
 
 config IR_HIX5HD2
        tristate "Hisilicon hix5hd2 IR remote control"
-       depends on OF || COMPILE_TEST
+       depends on (OF && HAS_IOMEM) || COMPILE_TEST
        help
           Say Y here if you want to use hisilicon hix5hd2 remote control.
           To compile this driver as a module, choose M here: the module will be