@@ -131,7 +131,7 @@ static void tlp_write_tx(struct altera_pcie *pcie,
131
131
cra_writel (pcie , tlp_rp_regdata -> ctrl , RP_TX_CNTRL );
132
132
}
133
133
134
- static bool altera_pcie_valid_config (struct altera_pcie * pcie ,
134
+ static bool altera_pcie_valid_device (struct altera_pcie * pcie ,
135
135
struct pci_bus * bus , int dev )
136
136
{
137
137
/* If there is no link, then there is no device */
@@ -342,7 +342,7 @@ static int altera_pcie_cfg_read(struct pci_bus *bus, unsigned int devfn,
342
342
if (altera_pcie_hide_rc_bar (bus , devfn , where ))
343
343
return PCIBIOS_BAD_REGISTER_NUMBER ;
344
344
345
- if (!altera_pcie_valid_config (pcie , bus , PCI_SLOT (devfn ))) {
345
+ if (!altera_pcie_valid_device (pcie , bus , PCI_SLOT (devfn ))) {
346
346
* value = 0xffffffff ;
347
347
return PCIBIOS_DEVICE_NOT_FOUND ;
348
348
}
@@ -359,7 +359,7 @@ static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn,
359
359
if (altera_pcie_hide_rc_bar (bus , devfn , where ))
360
360
return PCIBIOS_BAD_REGISTER_NUMBER ;
361
361
362
- if (!altera_pcie_valid_config (pcie , bus , PCI_SLOT (devfn )))
362
+ if (!altera_pcie_valid_device (pcie , bus , PCI_SLOT (devfn )))
363
363
return PCIBIOS_DEVICE_NOT_FOUND ;
364
364
365
365
return _altera_pcie_cfg_write (pcie , bus -> number , devfn , where , size ,
0 commit comments