drivers/nvmem/layouts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
correctly check the ENODEV return value.
Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
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;
--
2.20.1
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;
Hi, Thanks for your reply. How to add the CC stable now? Send v2 or add email CC or ...? BRs Wentao Guan
© 2016 - 2026 Red Hat, Inc.