]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver
authorJohn Crispin <john@phrozen.org>
Mon, 20 Feb 2017 09:29:43 +0000 (10:29 +0100)
committerJames Hogan <jhogan@kernel.org>
Mon, 13 Nov 2017 13:01:49 +0000 (13:01 +0000)
Switch the printk() call to the prefered pr_warn() api.

Fixes: 7e5873d3755c ("MIPS: pci: Add MT7620a PCIE driver")
Signed-off-by: John Crispin <john@phrozen.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.5+
Patchwork: https://patchwork.linux-mips.org/patch/15321/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/pci/pci-mt7620.c

index 22e4c22e750b099d5075ad6fa5db24bd094272b8..1a0b80a1cc4a73ed10f2ea6c11eb5f4dec61ed0c 100644 (file)
@@ -120,7 +120,7 @@ static int wait_pciephy_busy(void)
                else
                        break;
                if (retry++ > WAITRETRY_MAX) {
-                       printk(KERN_WARN "PCIE-PHY retry failed.\n");
+                       pr_warn("PCIE-PHY retry failed.\n");
                        return -1;
                }
        }