Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2097156ybl; Thu, 30 Jan 2020 11:18:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwUxktYN3TEb3ONl28E/6818TW+I+IGRrq5MRksfSbIra/Wal/xK/OLQcyPV+9KICMLGX6A X-Received: by 2002:a05:6830:1689:: with SMTP id k9mr4835112otr.311.1580411896081; Thu, 30 Jan 2020 11:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580411896; cv=none; d=google.com; s=arc-20160816; b=dkH8dmHE8+jbCNWZT5fGdZ4wcluGJYZCkk86kjSOanlnfSgtbZavjiq8cJNWydswOw yUGzZpLy3v/lA+886ORs4k88BweuhyiRjraRx2BxB2Ub8j1XhaU2OhARWOOovfpnWmyJ NtpFhgr0OMzalwvtXB59fb3XshbHaydDFd2JXrl6f9p0EwmYktLBnBB3SlGXrA3JcH4Z ZhTwvnr477dd2FTjE8lWbO8iByMRnmeTUlm+Whzr+6cEKhDU6Gxybf89vyj9YNO+xn+X SYMihzOfOsR29+cHm/COFbjF5+rQ3Kn1jClU7GztcndkJU0zPpBk2ugFqJHinnAqXJYB ieDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lI4YzCn61iyQFXyHfOnJHm+41Lpa7nHDncdsG44G5N4=; b=AC7CRIWDbzJCy+nA0Iunubkkmuys7m7FtgouxkjgJXXihbnIENXAE88AKVrdP0wjmR WK5GU2ITSbgQdaqrt+tLrg/h1Jhgxn1ftwI/NKBAEkV/DBI7foTzm+ukgVRiVhwU6sMQ +vCSk9BVzdkZ0CALw7x9gKzejFV6/IJOyRvf5gprr6M+oWeBn59bx7r8cH38NKT6Gv6a mxqc0W7PoxvMvDaXGCRI9irCVCmyF5lbL8u9o9+Sjz1Wc+/gTCd8TPBrst9qfMOUghCN zUv/4jgFjdYavMeFF/xt24f319Nb05MQVvRtyU/Xgjaa18Bzq1alXWrnioI94520OULq QsCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D54IlUGM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si3741104otq.78.2020.01.30.11.18.02; Thu, 30 Jan 2020 11:18:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D54IlUGM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730822AbgA3SoZ (ORCPT + 99 others); Thu, 30 Jan 2020 13:44:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:53478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730532AbgA3SoW (ORCPT ); Thu, 30 Jan 2020 13:44:22 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D7D2214DB; Thu, 30 Jan 2020 18:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409861; bh=bzJX7PYVkASWHqjAYN30b4sZoLH8MdDr3I91jheyyO4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D54IlUGM+2uF0EGWFzJwJpaj5D57LmlBAZTNy4bDQ7n3GAo7rsoq234DqdMFktb9l GWuKodKM6ci7DXLpX06tFHp/vc+SIoLH2tXb+H2c/u9n2EvzgqaoKtNPCRjpPifcNi zufIoDb8UfM6ZGGCwF4Z/bmZv8hdE2URHI+C4BO0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Cercueil , Bin Liu , Sasha Levin Subject: [PATCH 5.4 063/110] usb: musb: jz4740: Silence error if code is -EPROBE_DEFER Date: Thu, 30 Jan 2020 19:38:39 +0100 Message-Id: <20200130183622.317918205@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Cercueil [ Upstream commit ce03cbcb4b4fd2a3817f32366001f1ca45d213b8 ] Avoid printing any error message if the error code is -EPROBE_DEFER. Signed-off-by: Paul Cercueil Signed-off-by: Bin Liu Link: https://lore.kernel.org/r/20191216162432.1256-1-b-liu@ti.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/musb/jz4740.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c index 5261f8dfedecd..e3b8c84ccdb80 100644 --- a/drivers/usb/musb/jz4740.c +++ b/drivers/usb/musb/jz4740.c @@ -75,14 +75,17 @@ static struct musb_hdrc_platform_data jz4740_musb_platform_data = { static int jz4740_musb_init(struct musb *musb) { struct device *dev = musb->controller->parent; + int err; if (dev->of_node) musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0); else musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); if (IS_ERR(musb->xceiv)) { - dev_err(dev, "No transceiver configured\n"); - return PTR_ERR(musb->xceiv); + err = PTR_ERR(musb->xceiv); + if (err != -EPROBE_DEFER) + dev_err(dev, "No transceiver configured: %d", err); + return err; } /* Silicon does not implement ConfigData register. -- 2.20.1