* [2/2] usb: gadget: udc: atmel: Consolidate error messages
@ 2018-01-22 15:22 Ladislav Michl
0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2018-01-22 15:22 UTC (permalink / raw)
To: linux-usb; +Cc: Nicolas Ferre, Alexandre Belloni
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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-22 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22 15:22 [2/2] usb: gadget: udc: atmel: Consolidate error messages Ladislav Michl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).