dm: pcie_fsl: Convert IS_ENABLED() run-time checking to #ifdef
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Tue, 27 Aug 2019 10:13:48 +0000 (10:13 +0000)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 28 Aug 2019 08:17:44 +0000 (13:47 +0530)
commitadc983b4d676e4ca958067f86bec1bb02cb17950
treeaee0aac131f187f6e07758aedd90ea1912a0ec4c
parente4b8dd9b34021241cd05d5cc9d24b4ae34657830
dm: pcie_fsl: Convert IS_ENABLED() run-time checking to #ifdef

This can avoid build error:
The macro in brackets of the IS_ENABLED(CONFIG_FOO) is only
defined on the platforms that select the CONFIG_FOO, while
it's not defined on platforms that do not select the
CONFIG_FOO.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
drivers/pci/pcie_fsl.c