Skip to content

Commit 14c7b95

Browse files
committed
PCI: altera: Rename altera_pcie_valid_config() to altera_pcie_valid_device()
Rename altera_pcie_valid_config() to altera_pcie_valid_device(). No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent dbeb4bd commit 14c7b95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/pci/host/pcie-altera.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static void tlp_write_tx(struct altera_pcie *pcie,
131131
cra_writel(pcie, tlp_rp_regdata->ctrl, RP_TX_CNTRL);
132132
}
133133

134-
static bool altera_pcie_valid_config(struct altera_pcie *pcie,
134+
static bool altera_pcie_valid_device(struct altera_pcie *pcie,
135135
struct pci_bus *bus, int dev)
136136
{
137137
/* 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,
342342
if (altera_pcie_hide_rc_bar(bus, devfn, where))
343343
return PCIBIOS_BAD_REGISTER_NUMBER;
344344

345-
if (!altera_pcie_valid_config(pcie, bus, PCI_SLOT(devfn))) {
345+
if (!altera_pcie_valid_device(pcie, bus, PCI_SLOT(devfn))) {
346346
*value = 0xffffffff;
347347
return PCIBIOS_DEVICE_NOT_FOUND;
348348
}
@@ -359,7 +359,7 @@ static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn,
359359
if (altera_pcie_hide_rc_bar(bus, devfn, where))
360360
return PCIBIOS_BAD_REGISTER_NUMBER;
361361

362-
if (!altera_pcie_valid_config(pcie, bus, PCI_SLOT(devfn)))
362+
if (!altera_pcie_valid_device(pcie, bus, PCI_SLOT(devfn)))
363363
return PCIBIOS_DEVICE_NOT_FOUND;
364364

365365
return _altera_pcie_cfg_write(pcie, bus->number, devfn, where, size,

0 commit comments

Comments
 (0)