From: Ladislav Michl Date: Mon, 21 Nov 2016 14:59:24 +0000 (-0600) Subject: usb: musb: don't complain on -EPROBE_DEFER when initializing controller X-Git-Tag: v4.10-rc1~150^2~46 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3df08dc7124f760a6a69ebfffb0b9cea2e43bc26;p=karo-tx-linux.git usb: musb: don't complain on -EPROBE_DEFER when initializing controller Don't complain on -EPROBE_DEFER when initializing controller, the driver probe will be retried later. Signed-off-by: Ladislav Michl Acked-by: Tony Lindgren Signed-off-by: Bin Liu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 26f5710ab1fe..a5ead84d68d1 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2321,8 +2321,9 @@ fail2: musb_platform_exit(musb); fail1: - dev_err(musb->controller, - "musb_init_controller failed with status %d\n", status); + if (status != -EPROBE_DEFER) + dev_err(musb->controller, + "%s failed with status %d\n", __func__, status); musb_free(musb);