This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit edd86a5b59400778252bed2adc6f5b9636abe060
Author: lipengfei28 <[email protected]>
AuthorDate: Wed Mar 12 19:45:19 2025 +0800

    drivers/pci:fix pci_disable_irq/pci_enable_irq parameter
    
    fix pci_disable_irq/pci_enable_irq parameter
    
    Signed-off-by: lipengfei28 <[email protected]>
---
 drivers/pci/pci_ep_test.c  | 4 ++--
 drivers/pci/pci_epf_test.c | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/pci_ep_test.c b/drivers/pci/pci_ep_test.c
index 0b36e4a8ba8..837ca0edd12 100644
--- a/drivers/pci/pci_ep_test.c
+++ b/drivers/pci/pci_ep_test.c
@@ -548,7 +548,7 @@ static bool pci_ep_test_free_irq(FAR struct pci_ep_test_s 
*test)
     }
   else if (test->irq_type == PCI_EP_TEST_IRQ_TYPE_LEGACY)
     {
-      pci_disable_irq(dev);
+      pci_disable_irq(test->pdev);
     }
 
   return true;
@@ -631,7 +631,7 @@ static int pci_ep_test_alloc_irq(FAR struct pci_ep_test_s 
*test,
     }
   else if (irq_type == PCI_EP_TEST_IRQ_TYPE_LEGACY)
     {
-      pci_enable_irq(dev, test->irq);
+      pci_enable_irq(pdev, test->irq);
     }
 
   ret = irq_attach(test->irq, pci_ep_test_handler, test);
diff --git a/drivers/pci/pci_epf_test.c b/drivers/pci/pci_epf_test.c
index fbde50c3673..180ab960170 100644
--- a/drivers/pci/pci_epf_test.c
+++ b/drivers/pci/pci_epf_test.c
@@ -37,6 +37,7 @@
 #include <nuttx/pci/pci_epc.h>
 #include <nuttx/pci/pci_ids.h>
 #include <nuttx/pci/pci.h>
+#include <nuttx/nuttx.h>
 #include <nuttx/wqueue.h>
 #include <nuttx/nuttx.h>
 

Reply via email to