Linux USB
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: linux-usb@vger.kernel.org
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>
Subject: [2/2] usb: gadget: udc: atmel: Consolidate error messages
Date: Mon, 22 Jan 2018 16:22:34 +0100	[thread overview]
Message-ID: <20180122152234.GB17365@lenoch> (raw)

Use the same format for all error messages of driver probe function.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 drivers/usb/gadget/udc/atmel_usba_udc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c
index 403e06e7175f..7e2719e1f8bb 100644
--- a/drivers/usb/gadget/udc/atmel_usba_udc.c
+++ b/drivers/usb/gadget/udc/atmel_usba_udc.c
@@ -2326,7 +2326,7 @@ static int usba_udc_probe(struct platform_device *pdev)
 	/* Make sure we start from a clean slate */
 	ret = clk_prepare_enable(pclk);
 	if (ret) {
-		dev_err(&pdev->dev, "Unable to enable pclk, aborting.\n");
+		dev_err(&pdev->dev, "Unable to enable pclk: %d\n", ret);
 		return ret;
 	}
 
@@ -2346,7 +2346,7 @@ static int usba_udc_probe(struct platform_device *pdev)
 	ret = devm_request_irq(&pdev->dev, irq, usba_udc_irq, 0,
 				"atmel_usba_udc", udc);
 	if (ret) {
-		dev_err(&pdev->dev, "Cannot request irq %d (error %d)\n",
+		dev_err(&pdev->dev, "Cannot request irq %d: %d)\n",
 			irq, ret);
 		return ret;
 	}

                 reply	other threads:[~2018-01-22 15:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180122152234.GB17365@lenoch \
    --to=ladis@linux-mips.org \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=nicolas.ferre@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox