spl: fix build failure with !CONFIG_SPL_PCI_SUPPORT
[oweals/u-boot.git] / drivers / serial / ns16550.c
index f3bd8dbcdf50895594ea3110e39c38b3a3d401d1..560ca2ae349b4314911d6636f2d2c3dd9d358c0b 100644 (file)
@@ -425,7 +425,7 @@ int ns16550_serial_ofdata_to_platdata(struct udevice *dev)
 
        /* try Processor Local Bus device first */
        addr = dev_read_addr(dev);
-#if defined(CONFIG_PCI) && defined(CONFIG_DM_PCI)
+#if CONFIG_IS_ENABLED(PCI) && defined(CONFIG_DM_PCI)
        if (addr == FDT_ADDR_T_NONE) {
                /* then try pci device */
                struct fdt_pci_addr pci_addr;