ramips: fix Tenbay T-MB5EU v1 Wireless MAC
[openwrt/staging/mkresin.git] / target / linux / ramips / patches-5.4 / 0112-staging-mt7621-pci-change-variable-to-print-for-slot.patch
1 From b59343b7de448c30e5b098484a7c7c5cb300df2f Mon Sep 17 00:00:00 2001
2 From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
3 Date: Fri, 20 Mar 2020 12:01:22 +0100
4 Subject: [PATCH] staging: mt7621-pci: change variable to print for slot
5
6 We are using the counter to print the slot which has been
7 enabled. Use the correct associated slot for the port instead.
8
9 Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
10 Link: https://lore.kernel.org/r/20200320110123.9907-5-sergio.paracuellos@gmail.com
11 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 ---
13 drivers/staging/mt7621-pci/pci-mt7621.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/staging/mt7621-pci/pci-mt7621.c
17 +++ b/drivers/staging/mt7621-pci/pci-mt7621.c
18 @@ -562,7 +562,7 @@ static void mt7621_pcie_enable_ports(str
19 if (port->enabled) {
20 mt7621_pcie_port_clk_enable(port);
21 mt7621_pcie_enable_port(port);
22 - dev_info(dev, "PCIE%d enabled\n", num_slots_enabled);
23 + dev_info(dev, "PCIE%d enabled\n", port->slot);
24 num_slots_enabled++;
25 }
26 }