diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 74ab1a1e6b..e5f252d40b 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -951,7 +951,7 @@ static void pci_scan_bus(FAR struct pci_bus_s *bus) { FAR struct pci_device_s *dev; FAR struct pci_bus_s *child_bus; - uint32_t devfn; + unsigned int devfn; uint32_t l; uint32_t class; uint8_t hdr_type; diff --git a/drivers/pci/pci_ecam.c b/drivers/pci/pci_ecam.c index c125fba1b0..4cc974180b 100644 --- a/drivers/pci/pci_ecam.c +++ b/drivers/pci/pci_ecam.c @@ -47,11 +47,13 @@ * Private Function Prototypes ****************************************************************************/ -static int pci_ecam_read_config(FAR struct pci_bus_s *bus, uint32_t devfn, - int where, int size, FAR uint32_t *val); +static int pci_ecam_read_config(FAR struct pci_bus_s *bus, + unsigned int devfn, int where, int size, + FAR uint32_t *val); -static int pci_ecam_write_config(FAR struct pci_bus_s *bus, uint32_t devfn, - int where, int size, uint32_t val); +static int pci_ecam_write_config(FAR struct pci_bus_s *bus, + unsigned int devfn, int where, int size, + uint32_t val); /**************************************************************************** * Private Types @@ -168,8 +170,9 @@ static bool pci_ecam_addr_valid(FAR const struct pci_bus_s *bus, * ****************************************************************************/ -static int pci_ecam_read_config(FAR struct pci_bus_s *bus, uint32_t devfn, - int where, int size, FAR uint32_t *val) +static int pci_ecam_read_config(FAR struct pci_bus_s *bus, + unsigned int devfn, int where, int size, + FAR uint32_t *val) { FAR void *addr; @@ -225,8 +228,9 @@ static int pci_ecam_read_config(FAR struct pci_bus_s *bus, uint32_t devfn, * ****************************************************************************/ -static int pci_ecam_write_config(FAR struct pci_bus_s *bus, uint32_t devfn, - int where, int size, uint32_t val) +static int pci_ecam_write_config(FAR struct pci_bus_s *bus, + unsigned int devfn, int where, int size, + uint32_t val) { FAR void *addr;