Skip to content

Commit

Permalink
usb: dwc3: don't log probe deferrals; but do log other error codes
Browse files Browse the repository at this point in the history
It's not very useful to repeat a bunch of probe deferral errors. And
it's also not very useful to log "failed" without telling the error
code.

Signed-off-by: Brian Norris <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
computersforpeace authored and Felipe Balbi committed Nov 26, 2018
1 parent 1808bd2 commit 408d3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,8 @@ static int dwc3_probe(struct platform_device *pdev)

ret = dwc3_core_init(dwc);
if (ret) {
dev_err(dev, "failed to initialize core\n");
if (ret != -EPROBE_DEFER)
dev_err(dev, "failed to initialize core: %d\n", ret);
goto err4;
}

Expand Down

0 comments on commit 408d3ba

Please sign in to comment.