Re: [PATCH] media: platform: stm32: don't print an error on probe deferral

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dears Yannick & Etienne,
Thank you for your patch,

Reviewed-by: Philippe Cornu <philippe.cornu@xxxxxx>

Philippe :-)

On 1/21/20 11:22 AM, Yannick Fertre wrote:
> From: Etienne Carriere <etienne.carriere@xxxxxx>
> 
> Change stm32-cec driver to not print an error message when the
> device probe operation is deferred.
> 
> Signed-off-by: Etienne Carriere <etienne.carriere@xxxxxx>
> ---
>   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);
>   	}
>   
> 




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux