]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
usb: musb: omap2430: use dev_err
authorLadislav Michl <ladis@linux-mips.org>
Mon, 21 Nov 2016 14:59:25 +0000 (08:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 16:35:36 +0000 (17:35 +0100)
Replace pr_err with dev_err to print also device name.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/omap2430.c

index cc1225485509cbabda9c3241334889776edf8870..451b372526046309371b18aaddd9ded88aff83cb 100644 (file)
@@ -277,12 +277,12 @@ static int omap2430_musb_init(struct musb *musb)
                if (status == -ENXIO)
                        return status;
 
-               pr_err("HS USB OTG: no transceiver configured\n");
+               dev_err(dev, "HS USB OTG: no transceiver configured\n");
                return -EPROBE_DEFER;
        }
 
        if (IS_ERR(musb->phy)) {
-               pr_err("HS USB OTG: no PHY configured\n");
+               dev_err(dev, "HS USB OTG: no PHY configured\n");
                return PTR_ERR(musb->phy);
        }
        musb->isr = omap2430_musb_interrupt;
@@ -301,7 +301,7 @@ static int omap2430_musb_init(struct musb *musb)
 
        musb_writel(musb->mregs, OTG_INTERFSEL, l);
 
-       pr_debug("HS USB OTG: revision 0x%x, sysconfig 0x%02x, "
+       dev_dbg(dev, "HS USB OTG: revision 0x%x, sysconfig 0x%02x, "
                        "sysstatus 0x%x, intrfsel 0x%x, simenable  0x%x\n",
                        musb_readl(musb->mregs, OTG_REVISION),
                        musb_readl(musb->mregs, OTG_SYSCONFIG),