Received: by 10.192.165.148 with SMTP id m20csp4529595imm; Tue, 24 Apr 2018 04:27:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+2XoqYtjMEQZSqHyq2p4reeJ2fvvH16XtBjUTMw69BglkXsPoGkLl+BHcQiB73ohJ4srMr X-Received: by 2002:a17:902:1025:: with SMTP id b34-v6mr24649998pla.324.1524569263466; Tue, 24 Apr 2018 04:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524569263; cv=none; d=google.com; s=arc-20160816; b=HsNdLR+pXfu5osLHBm7pUtpdZET+4pi4jXu1pO5MsY7yqoqeM2bt+QiPxtMKoTDCXW gVpRjq55MzqYQRITn4VDFuaOwhOQrQyf6iSorLjxaZ1dcdNZi0sTiMBszosS45eXeLGQ OsorMnmmnObvIjhxu0Vf2NjCvDdbQH1CloVWs+kRbKTHmOKNvj5ItUIYt17MlQm+/c50 JexWx2pL/pccJiOAlrxx6Ms4zoU7rvOCLBvxD1KhwCnnCsRPNUUUz8yYM3ZHTsK8A6iL 0ko9myPsixA8SyVMpj8Zmg6hqAZGBF4U2VQ2NvvNefvd26R+RHddBjDQUnTM5la7GKC6 0pYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=dmeCkJ7AvKJtcBLqEPUe9SmlWlckwxvG0vcODkRP51E=; b=K6M6HNV/+j4WYDQfonVZEPj/pDGCWIANMv7SIGIiM0sWJrI7qgQOj9+1quZr48Cxzb Qcxro7dt0xTeMS4RPCDAlMQsDYT77SJqon+1iM8Z0EyPUnf8+E5uzx4Jso15YxLNpnZ5 RYog831qWjOMliWp5RNN9GqKPvYfFzP4jOehJlHwR+L570BsxdQTMwZ1uiFiwKugCwZU PseVTvSAyv4rpc09YonYgGPqFDlVzm+SZBdY8V+5pHRg8H0/pe5oep9jw4iSPHI/SKQR iRYqOptxcVMuSb4+dUaaZiEvvMtjwGqL/TY7dERftl2bvrJ2d3e22VrKCpVkUYQ+mkgh qfMg== ARC-Authentication-Results: i=1; mx.google.com; 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 x10si12502365pfm.18.2018.04.24.04.27.29; Tue, 24 Apr 2018 04:27:43 -0700 (PDT) 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; 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 S1755764AbeDXJsP (ORCPT + 99 others); Tue, 24 Apr 2018 05:48:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:48142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756713AbeDXJsH (ORCPT ); Tue, 24 Apr 2018 05:48:07 -0400 Received: from ziggy.de (144.pool85-56-49.dynamic.orange.es [85.56.49.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3E29217CE; Tue, 24 Apr 2018 09:48:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3E29217CE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=matthias.bgg@kernel.org From: matthias.bgg@kernel.org To: ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, lee.jones@linaro.org Cc: davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, pi-cheng.chen@linaro.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger Subject: [v2 resend 09/10] drm: mediatek: Omit warning on probe defers Date: Tue, 24 Apr 2018 11:47:06 +0200 Message-Id: X-Mailer: git-send-email 2.16.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index bafc5c77c4fb..6b399348a2dc 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c @@ -374,7 +374,8 @@ static int mtk_ddp_probe(struct platform_device *pdev) ddp->clk = devm_clk_get(dev, NULL); if (IS_ERR(ddp->clk)) { - dev_err(dev, "Failed to get clock\n"); + if (PTR_ERR(ddp->clk) != -EPROBE_DEFER) + dev_err(dev, "Failed to get clock\n"); return PTR_ERR(ddp->clk); } -- 2.16.3