public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Srinivas Kandagatla <srini@kernel.org>
To: Wentao Guan <guanwentao@uniontech.com>, srini@kernel.org
Cc: miquel.raynal@bootlin.com, mwalle@kernel.org,
	gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
	zhanjun@uniontech.com, niecheng1@uniontech.com,
	WangYuli <wangyl5933@chinaunicom.cn>
Subject: Re: [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent
Date: Mon, 13 Oct 2025 13:23:51 +0100	[thread overview]
Message-ID: <f9274080-9a2f-4e10-ad5f-fa84d7615c15@kernel.org> (raw)
In-Reply-To: <20251013115910.702784-1-guanwentao@uniontech.com>



On 10/13/25 12:59 PM, Wentao Guan wrote:
> correctly check the ENODEV return value.
> 
> Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")

Missing CC Stable

--srini
> Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn>
> Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
> ---
>  drivers/nvmem/layouts.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/nvmem/layouts.c b/drivers/nvmem/layouts.c
> index f381ce1e84bd..7ebe53249035 100644
> --- a/drivers/nvmem/layouts.c
> +++ b/drivers/nvmem/layouts.c
> @@ -51,7 +51,7 @@ static int nvmem_layout_bus_uevent(const struct device *dev,
>  	int ret;
>  
>  	ret = of_device_uevent_modalias(dev, env);
> -	if (ret != ENODEV)
> +	if (ret != -ENODEV)
>  		return ret;
>  
>  	return 0;


  reply	other threads:[~2025-10-13 12:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-13 11:59 [PATCH] nvmem: layouts: fix nvmem_layout_bus_uevent Wentao Guan
2025-10-13 12:23 ` Srinivas Kandagatla [this message]
2025-10-13 12:31   ` Wentao Guan
2025-10-13 12:33     ` Srinivas Kandagatla
  -- strict thread matches above, loose matches on Subject: below --
2025-11-14 11:05 srini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9274080-9a2f-4e10-ad5f-fa84d7615c15@kernel.org \
    --to=srini@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=guanwentao@uniontech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=mwalle@kernel.org \
    --cc=niecheng1@uniontech.com \
    --cc=wangyl5933@chinaunicom.cn \
    --cc=zhanjun@uniontech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox