of: address: Use IS_ENABLED() for !CONFIG_PCI
authorRob Herring <robh@kernel.org>
Thu, 27 May 2021 19:45:46 +0000 (14:45 -0500)
committerRob Herring <robh@kernel.org>
Thu, 3 Jun 2021 01:59:29 +0000 (20:59 -0500)
commitc3c0dc75774b488770f33598109161040d291367
tree448ec0f71854c5150b658ba87b06935ff5c762e2
parent050a2c62dfc7d9ef457405f6ab4b715e9a2e32d7
of: address: Use IS_ENABLED() for !CONFIG_PCI

Convert address.c to use IS_ENABLED() instead of ifdefs for the
public PCI functions. This simplifies the ifdefs in of_address.h.

Cc: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210527194547.1287934-4-robh@kernel.org
drivers/of/address.c
include/linux/of_address.h