diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-06 14:29:03 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-11 20:54:38 -0400 |
commit | 14c7b9580f9179d4f71980dab1d5c5c63f6eb0d6 (patch) | |
tree | f7a016b2e71a1abe9f8b3fa4a63bad689db520d1 /drivers/pci/host/pcie-altera.c | |
parent | dbeb4bd8bae584408ce7e09b29510e2b5cb85bbb (diff) |
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>
Diffstat (limited to 'drivers/pci/host/pcie-altera.c')
-rw-r--r-- | drivers/pci/host/pcie-altera.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index 931c51ed471e..a99765a8f66b 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c | |||
@@ -131,7 +131,7 @@ static void tlp_write_tx(struct altera_pcie *pcie, | |||
131 | cra_writel(pcie, tlp_rp_regdata->ctrl, RP_TX_CNTRL); | 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 | struct pci_bus *bus, int dev) | 135 | struct pci_bus *bus, int dev) |
136 | { | 136 | { |
137 | /* If there is no link, then there is no device */ | 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 | if (altera_pcie_hide_rc_bar(bus, devfn, where)) | 342 | if (altera_pcie_hide_rc_bar(bus, devfn, where)) |
343 | return PCIBIOS_BAD_REGISTER_NUMBER; | 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 | *value = 0xffffffff; | 346 | *value = 0xffffffff; |
347 | return PCIBIOS_DEVICE_NOT_FOUND; | 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 | if (altera_pcie_hide_rc_bar(bus, devfn, where)) | 359 | if (altera_pcie_hide_rc_bar(bus, devfn, where)) |
360 | return PCIBIOS_BAD_REGISTER_NUMBER; | 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 | return PCIBIOS_DEVICE_NOT_FOUND; | 363 | return PCIBIOS_DEVICE_NOT_FOUND; |
364 | 364 | ||
365 | return _altera_pcie_cfg_write(pcie, bus->number, devfn, where, size, | 365 | return _altera_pcie_cfg_write(pcie, bus->number, devfn, where, size, |