Commit 4fdf3abc authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-pci: rename 'mt7621_pcie_enable_port' into 'mt7621_pcie_init_port'

Rename function 'mt7621_pcie_enable_port' with a name which is better
for what the function is really doing calling it 'mt7621_pcie_init_port'.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f443b5c2
...@@ -543,7 +543,7 @@ static int mt7621_pcie_parse_dt(struct mt7621_pcie *pcie) ...@@ -543,7 +543,7 @@ static int mt7621_pcie_parse_dt(struct mt7621_pcie *pcie)
return 0; return 0;
} }
static int mt7621_pcie_enable_port(struct mt7621_pcie_port *port) static int mt7621_pcie_init_port(struct mt7621_pcie_port *port)
{ {
struct mt7621_pcie *pcie = port->pcie; struct mt7621_pcie *pcie = port->pcie;
struct device *dev = pcie->dev; struct device *dev = pcie->dev;
...@@ -660,7 +660,7 @@ static int mt7621_pci_probe(struct platform_device *pdev) ...@@ -660,7 +660,7 @@ static int mt7621_pci_probe(struct platform_device *pdev)
list_for_each_entry_safe(port, tmp, &pcie->ports, list) { list_for_each_entry_safe(port, tmp, &pcie->ports, list) {
u32 slot = port->slot; u32 slot = port->slot;
err = mt7621_pcie_enable_port(port); err = mt7621_pcie_init_port(port);
if (err) { if (err) {
dev_err(dev, "enabling port %d failed\n", slot); dev_err(dev, "enabling port %d failed\n", slot);
list_del(&port->list); list_del(&port->list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment