Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3526511ybl; Tue, 21 Jan 2020 02:24:10 -0800 (PST) X-Google-Smtp-Source: APXvYqy2b4XgogqvekWyKRVVtPZ5wT/DYOeLaf6Lp1hrV57QLFsZOxbYnv5HwGN4yaZiK8nZhewD X-Received: by 2002:aca:5793:: with SMTP id l141mr2346114oib.38.1579602250752; Tue, 21 Jan 2020 02:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579602250; cv=none; d=google.com; s=arc-20160816; b=H4wbkHsyEfvu56PkAZaO4k72PPtM50sq8RA0jPMb0EMNcnPHcGuT+XT+Ha9s3ze8Xd YblLwXuZHDzy6n7XU6ASKPxrFq4Vk03FVkJPqFw7siB+2+f4/dmpOLZeL+mY4Mvde92E eqCAA5eqawof1CBnvDolwOIDr0TKwuHitGBFhSF9bmgIKDzSQ0plthw44lxZxqSqG12L svNfTrFyNPvARS/5TMrPUUWC578+m/DkyT5bkNxpbyaZm2uKDCG02DqV4X+JPf01zCuW xxF1WYZC8n5/oU5fp+azqlAeo0zDCDdb/seskLCfN5zXdy20uNCBVjOGewyVPD/VeBuS al0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:dkim-signature; bh=uU66AWwrrnwTiw+9Nz6p8yTErkFbXxjMVakld76eCaU=; b=FhSYMw9s6map7v4EzxNAY8YBCRT3hKQzCcY+1x7pYtpeLYB1eoAS1ngGv0Rn7ZWBnt Ag96/LyRMNAo6hXWgmeqF1pFYFPEsn5vzKaxOWdWnyguGNHFXucDGz3QGLzY+0dICvPo ot3Bndjd1DVsJy5VKIclpOBxJUexCNJq8Q8Z2fv1aKL7W9N65iY8Rd7jinwwH1CVht8P CLIHj1zz6meRjZKN6+lZJGoNdJsVZolJgR2gv66Daab86rYvNwUiOZiU/6ZIRTg2cBOH df4tCepODsbsc0yk3f5mtZ7x+TzmGO29B9tYNucfNuy6Gc57iBO0tXcY2MxPf6ba1Doc EzfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ifdQ74tW; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i17si21474031ota.82.2020.01.21.02.23.58; Tue, 21 Jan 2020 02:24:10 -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=@st.com header.s=STMicroelectronics header.b=ifdQ74tW; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729524AbgAUKXI (ORCPT + 99 others); Tue, 21 Jan 2020 05:23:08 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:26448 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727220AbgAUKXI (ORCPT ); Tue, 21 Jan 2020 05:23:08 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00LAI5KS023923; Tue, 21 Jan 2020 11:22:59 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=uU66AWwrrnwTiw+9Nz6p8yTErkFbXxjMVakld76eCaU=; b=ifdQ74tWi+8zC2yp06a1zXl/PCGyzzeGxVAE8Nq7gnKObCqk7fc1T2/V1fo0iMYG486/ tk9AwuGdAEa4r1KEB0ImcoELiPPrDTPPJp5vr8MpvIEwwDF//cyBFlPrFiPYwkziz9vd UF54khdkZ+NkfI+7jsfFK4iHieyyoaaB7ad/iWlQuI7aeIzdTRzmGHomDhYVMd+DNDWT s6mjLfqhIsdGLqoSGu1CTz9VXqCyCCYQTk7sKk7Qe4OQjMfLHtPnyAEQvotCcgaR4xq2 ndlafA57DNH1YYpZGRuGf0VgdQ8GfQ/rwhaBBhS6CYYrh8mF2xbioFJeFHLSzyu7pqtr ow== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xkrp2634v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Jan 2020 11:22:59 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E33D910002A; Tue, 21 Jan 2020 11:22:51 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D7D222B187E; Tue, 21 Jan 2020 11:22:51 +0100 (CET) Received: from localhost (10.75.127.47) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 21 Jan 2020 11:22:51 +0100 From: Yannick Fertre To: Mauro Carvalho Chehab , Maxime Coquelin , Alexandre Torgue , Yannick Fertre , Etienne Carriere , Hans Verkuil , Benjamin Gaignard , , , , , Philippe Cornu Subject: [PATCH] media: platform: stm32: don't print an error on probe deferral Date: Tue, 21 Jan 2020 11:22:49 +0100 Message-ID: <1579602169-7484-1-git-send-email-yannick.fertre@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG1NODE1.st.com (10.75.127.1) To SFHDAG6NODE1.st.com (10.75.127.16) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-21_02:2020-01-21,2020-01-21 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Etienne Carriere Change stm32-cec driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere --- drivers/media/platform/stm32/stm32-cec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/stm32/stm32-cec.c b/drivers/media/platform/stm32/stm32-cec.c index 8a86b2c..9c137f1 100644 --- a/drivers/media/platform/stm32/stm32-cec.c +++ b/drivers/media/platform/stm32/stm32-cec.c @@ -291,7 +291,9 @@ static int stm32_cec_probe(struct platform_device *pdev) cec->clk_cec = devm_clk_get(&pdev->dev, "cec"); if (IS_ERR(cec->clk_cec)) { - dev_err(&pdev->dev, "Cannot get cec clock\n"); + if (PTR_ERR(cec->clk_cec) != -EPROBE_DEFER) + dev_err(&pdev->dev, "Cannot get cec clock\n"); + return PTR_ERR(cec->clk_cec); } -- 2.7.4