Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp109858imm; Tue, 17 Jul 2018 15:02:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpffcmoldGTeGkUvHR745wiBcQ3t7udhSSmnpBK8yJwNFvbjRGgMnmeJd3l9ZXIqfXaVm7n4 X-Received: by 2002:a62:4bc6:: with SMTP id d67-v6mr2395510pfj.175.1531864966687; Tue, 17 Jul 2018 15:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531864966; cv=none; d=google.com; s=arc-20160816; b=X6YuJzFyakR5z3HBIrqKwlAg8u7yA+JSqauZq3Ss2KGI+NYo1yn3cGvW3OMAOq801n 2IKnDEHH7K0Hfmc5VSY34l1c0pzKdcG/YSRjq2KV380391rntmtflWE7AC/Xfh3n1EfF IdK0yLvh2uMs31o7JdIw3Zt4LSbxg10dgDm1WcGbxyVxATe46qeUbSvePQZBvcGzzMQU m4QiIHGvWw+zoT5QsL3WFdh9O/LxmH1Zbwna/Poc9hMwK2i3Wt3G4Ksl9EhnJs6K3VBl rGZopdJznHQeHyqareo7u0EzlMJ8mUsUW8eQVZem6HJsnsKlZAzezaDxiFHq4R0I6wl1 7bsA== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=BOWVweKRY/nygJcmvYqjc8ac+bJ8GsOCodm4ODZObP4=; b=SqpXnccSFHGXCbnvbXzJhhQLTYPwxV0MHy5HXqMxOTJditrZzRse9H33MBVAxK/bex IVV/6jEppT8AbPyon989a/cUl5DWAh76O+h9aVGrJg5HI6++xF03zTGq6JXc73EtkR1F MNqlqFYN5hc1CWn14lQVY9hpX6aSHG9OOI3AS1xoBPtE6BsjlE2O9UUpCnySqZ0bTXPT lckLOeUgeNdSJomMQdQeuNpoSjdUsfYCno0JwMw1YWjCD/vD3UuaKMfhStcBLent90FY 8d5lC7AJM3C/Qi4m9FdwUrRLAQaGWKLY3eI2Cp+Q82gwkfH73rGQo5BqeUj4UrhsGDuu DjGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sogBu8UQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15-v6si1859203pgb.472.2018.07.17.15.02.31; Tue, 17 Jul 2018 15:02:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sogBu8UQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731485AbeGQWfL (ORCPT + 99 others); Tue, 17 Jul 2018 18:35:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:44822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730008AbeGQWfL (ORCPT ); Tue, 17 Jul 2018 18:35:11 -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 EF3C720836; Tue, 17 Jul 2018 22:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531864831; bh=f4As0+HF36fFkBMzpJ+NyGBUuaoRUlfFgLzsD+BkT6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sogBu8UQbVGITpuwsqHguWyK2LeVTvm7zF75q9WLBARCK5YCmnwIIUEkKSXPSxW12 egYaBfOrGiCiennFulCLTYGQ/3276aXR4NdHAmUL7SkALr4/TkCapoF+9E7SvF/YYa FRSd49+fOa8HMyQ3tHFC6Hu7alZLSmsdToWJl4iA= From: matthias.bgg@kernel.org To: 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: [PATCH v4--to=ulrich.hecht+renesas@gmail.com 5/5] drm: mediatek: Omit warning on probe defers Date: Tue, 17 Jul 2018 23:59:51 +0200 Message-Id: <20180717215951.378-6-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180717215951.378-1-matthias.bgg@kernel.org> References: <20180717215951.378-1-matthias.bgg@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger 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 Acked-by: CK Hu --- 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.17.1