[PATCH v2] nvmem: layouts: fix nvmem_layout_bus_uevent

Wentao Guan posted 1 patch 2 months, 1 week ago
drivers/nvmem/layouts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] nvmem: layouts: fix nvmem_layout_bus_uevent
Posted by Wentao Guan 2 months, 1 week ago
correctly check the ENODEV return value.

Fixes: 810b790033cc ("nvmem: layouts: fix automatic module loading")
CC: stable@vger.kernel.org
Co-developed-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: WangYuli <wangyl5933@chinaunicom.cn>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
---
v2 changelog:
add cc stable.
---
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
Re: [PATCH v2] nvmem: layouts: fix nvmem_layout_bus_uevent
Posted by Srinivas Kandagatla 2 months ago
On Mon, 13 Oct 2025 20:41:29 +0800, Wentao Guan wrote:
> correctly check the ENODEV return value.
> 
> 

Applied, thanks!

[1/1] nvmem: layouts: fix nvmem_layout_bus_uevent
      commit: 8b6322da3c1fd814c2293525f69b776b80fc6895

Best regards,
-- 
Srinivas Kandagatla <srini@kernel.org>