]> git.baikalelectronics.ru Git - kernel.git/commitdiff
staging: mt7621-pci: change variable to print for slot
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 20 Mar 2020 11:01:22 +0000 (12:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 14:10:50 +0000 (15:10 +0100)
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>
drivers/staging/mt7621-pci/pci-mt7621.c

index a521653d8dba1d37f4cff7ff92cd1751f5d8488f..bc410c3d9afc9b6d1d7510f5dc6cd9b9076719c1 100644 (file)
@@ -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++;
                }
        }