lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201106174109.GF14837@roeck-us.net>
Date:   Fri, 6 Nov 2020 09:41:09 -0800
From:   Guenter Roeck <linux@...ck-us.net>
To:     Christophe Roullier <christophe.roullier@...com>
Cc:     wim@...ux-watchdog.org, mcoquelin.stm32@...il.com,
        alexandre.torgue@...com, linux-watchdog@...r.kernel.org,
        linux-kernel@...r.kernel.org,
        linux-stm32@...md-mailman.stormreply.com,
        linux-arm-kernel@...ts.infradead.org,
        Etienne Carriere <etienne.carriere@...com>
Subject: Re: [PATCH V2 1/1] watchdog: stm32_iwdg: don't print an error on
 probe deferral

On Fri, Nov 06, 2020 at 03:23:27PM +0100, Christophe Roullier wrote:
> From: Etienne Carriere <etienne.carriere@...com>
> 
> Do not print an error trace when deferring probe for clock resources.
> 
> Signed-off-by: Etienne Carriere <etienne.carriere@...com>
> Signed-off-by: Christophe Roullier <christophe.roullier@...com>

Reviewed-by: Guenter Roeck <linux@...ck-us.net>

> ---
>  drivers/watchdog/stm32_iwdg.c | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c
> index 25188d6bbe15..a3436c296c97 100644
> --- a/drivers/watchdog/stm32_iwdg.c
> +++ b/drivers/watchdog/stm32_iwdg.c
> @@ -162,18 +162,15 @@ static int stm32_iwdg_clk_init(struct platform_device *pdev,
>  	u32 ret;
>  
>  	wdt->clk_lsi = devm_clk_get(dev, "lsi");
> -	if (IS_ERR(wdt->clk_lsi)) {
> -		dev_err(dev, "Unable to get lsi clock\n");
> -		return PTR_ERR(wdt->clk_lsi);
> -	}
> +	if (IS_ERR(wdt->clk_lsi))
> +		return dev_err_probe(dev, PTR_ERR(wdt->clk_lsi), "Unable to get lsi clock\n");
>  
>  	/* optional peripheral clock */
>  	if (wdt->data->has_pclk) {
>  		wdt->clk_pclk = devm_clk_get(dev, "pclk");
> -		if (IS_ERR(wdt->clk_pclk)) {
> -			dev_err(dev, "Unable to get pclk clock\n");
> -			return PTR_ERR(wdt->clk_pclk);
> -		}
> +		if (IS_ERR(wdt->clk_pclk))
> +			return dev_err_probe(dev, PTR_ERR(wdt->clk_pclk),
> +					     "Unable to get pclk clock\n");
>  
>  		ret = clk_prepare_enable(wdt->clk_pclk);
>  		if (ret) {
> -- 
> 2.17.1
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ