diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 3e6bfe07cbd49..568bfb464e2e2 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1829,7 +1829,7 @@ int pci_connect_irq(FAR struct pci_device_s *dev, FAR int *irq, int num) uint8_t msi = 0; uint8_t msix = 0; - if (dev->bus->ctrl->ops->connect_irq) + if (dev->bus->ctrl->ops->connect_irq == NULL) { return -ENOTSUP; }