aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-pci
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2020-03-20 12:01:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-20 15:10:50 +0100
commit7846a9828572cf6e7f6aefe61fcfe0195abe9ae1 (patch)
treefe90b19e6dcd083264baa6c555c95a0f0e6db8d8 /drivers/staging/mt7621-pci
parentstaging: mt7621-pci: use only two phys from device tree (diff)
downloadlinux-dev-7846a9828572cf6e7f6aefe61fcfe0195abe9ae1.tar.xz
linux-dev-7846a9828572cf6e7f6aefe61fcfe0195abe9ae1.zip
staging: mt7621-pci: change variable to print for slot
We are using the counter to print the slot which has been enabled. Use the correct associated slot for the port instead. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Link: https://lore.kernel.org/r/20200320110123.9907-5-sergio.paracuellos@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-pci')
-rw-r--r--drivers/staging/mt7621-pci/pci-mt7621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index a521653d8dba..bc410c3d9afc 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -562,7 +562,7 @@ static void mt7621_pcie_enable_ports(struct mt7621_pcie *pcie)
if (port->enabled) {
mt7621_pcie_port_clk_enable(port);
mt7621_pcie_enable_port(port);
- dev_info(dev, "PCIE%d enabled\n", num_slots_enabled);
+ dev_info(dev, "PCIE%d enabled\n", port->slot);
num_slots_enabled++;
}
}