From: Ladislav Michl <la...@linux-mips.org>

Don't complain on -EPROBE_DEFER when initializing controller,
the driver probe will be retried later.

Signed-off-by: Ladislav Michl <la...@linux-mips.org>
Acked-by: Tony Lindgren <t...@atomide.com>
Signed-off-by: Bin Liu <b-...@ti.com>
---
 drivers/usb/musb/musb_core.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 7074b2c557ca..3dc74d466a98 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2323,8 +2323,9 @@ static void musb_deassert_reset(struct work_struct *work)
        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);
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to