From patchwork Wed May 6 10:39:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ferraris X-Patchwork-Id: 1284292 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=collabora.com Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49HClw40SPz9sPF for ; Wed, 6 May 2020 20:40:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA076821BE; Wed, 6 May 2020 12:39:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id ABF8A821B3; Wed, 6 May 2020 12:39:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A72C382191 for ; Wed, 6 May 2020 12:39:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=arnaud.ferraris@collabora.com Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:380b:a549:ce3:a9d2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 9FBED2A09DE; Wed, 6 May 2020 11:39:48 +0100 (BST) From: Arnaud Ferraris To: u-boot@lists.denx.de Cc: Adrian Ratiu , Kever Yang , Lokesh Vutla , Marek Vasut , Simon Glass , Sjoerd Simons Subject: [PATCH v2 2/2] drivers: usb: musb: ti: Use dev_err instead of pr_err Date: Wed, 6 May 2020 12:39:40 +0200 Message-Id: <20200506103940.64454-2-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200506103940.64454-1-arnaud.ferraris@collabora.com> References: <20200506103940.64454-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean In order to maintain consistency, every call to pr_err() is replaced with dev_err(). Signed-off-by: Arnaud Ferraris --- Changes in v2: - added in v2 drivers/usb/musb-new/ti-musb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index 56d6134dc6..f8cb488cc4 100644 --- a/drivers/usb/musb-new/ti-musb.c +++ b/drivers/usb/musb-new/ti-musb.c @@ -114,7 +114,7 @@ static int ti_musb_ofdata_to_platdata(struct udevice *dev) musb_config->multipoint = fdtdec_get_int(fdt, node, "mentor,multipoint", -1); if (musb_config->multipoint < 0) { - pr_err("MUSB multipoint DT entry missing\n"); + dev_err(dev, "MUSB multipoint DT entry missing\n"); return -ENOENT; } @@ -123,14 +123,14 @@ static int ti_musb_ofdata_to_platdata(struct udevice *dev) musb_config->num_eps = fdtdec_get_int(fdt, node, "mentor,num-eps", -1); if (musb_config->num_eps < 0) { - pr_err("MUSB num-eps DT entry missing\n"); + dev_err(dev, "MUSB num-eps DT entry missing\n"); return -ENOENT; } musb_config->ram_bits = fdtdec_get_int(fdt, node, "mentor,ram-bits", -1); if (musb_config->ram_bits < 0) { - pr_err("MUSB ram-bits DT entry missing\n"); + dev_err(dev, "MUSB ram-bits DT entry missing\n"); return -ENOENT; } @@ -138,7 +138,7 @@ static int ti_musb_ofdata_to_platdata(struct udevice *dev) platdata->plat.power = fdtdec_get_int(fdt, node, "mentor,power", -1); if (platdata->plat.power < 0) { - pr_err("MUSB mentor,power DT entry missing\n"); + dev_err(dev, "MUSB mentor,power DT entry missing\n"); return -ENOENT; } @@ -189,7 +189,7 @@ static int ti_musb_host_ofdata_to_platdata(struct udevice *dev) ret = ti_musb_ofdata_to_platdata(dev); if (ret) { - pr_err("platdata dt parse error\n"); + dev_err(dev, "platdata dt parse error\n"); return ret; } @@ -227,7 +227,7 @@ static int ti_musb_peripheral_ofdata_to_platdata(struct udevice *dev) ret = ti_musb_ofdata_to_platdata(dev); if (ret) { - pr_err("platdata dt parse error\n"); + dev_err(dev, "platdata dt parse error\n"); return ret; } platdata->plat.mode = MUSB_PERIPHERAL; @@ -312,7 +312,7 @@ static int ti_musb_wrapper_bind(struct udevice *parent) node, &dev); if (ret) - pr_err("musb - not able to bind usb peripheral node\n"); + dev_err(dev, "musb - not able to bind usb peripheral node\n"); break; case USB_DR_MODE_HOST: /* Bind MUSB host */ @@ -322,7 +322,7 @@ static int ti_musb_wrapper_bind(struct udevice *parent) node, &dev); if (ret) - pr_err("musb - not able to bind usb host node\n"); + dev_err(dev, "musb - not able to bind usb host node\n"); break; default: break;