Skip to contentSkip to conversation

nvmem: layouts: fix nvmem_layout_bus_uevent

PATCH Superseded Wentao Guan 2 participants 4 messages Oct 13, 2025 NVMEM framework

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmem: layouts: fix nvmem_layout_bus_uevent

correctly check the ENODEV return value.

Fixes 810b790033cc ("nvmem: layouts: fix automatic module loading")
---
 drivers/nvmem/layouts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/layouts.c +1 -1
index f381ce1e84bd..7ebe53249035 100644
@@ -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;
Signature · 1 line
2.20.1
#1 lore raw
Quoted 3 lines · Wentao Guan

correctly check the ENODEV return value.

Fixes 810b790033cc ("nvmem: layouts: fix automatic module loading")

Missing CC Stable

--srini

Quoted 20 lines
---
 drivers/nvmem/layouts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/layouts.c +1 -1
index f381ce1e84bd..7ebe53249035 100644
@@ -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 lore raw

Hi,

Thanks for your reply.
How to add the CC stable now?
Send v2 or add email CC or ...?

BRs
Wentao Guan

#3 lore raw
Quoted 5 lines · Wentao Guan

Hi,

Thanks for your reply.
How to add the CC stable now?
Send v2 or add email CC or ...?

v2 please
--srini

Quoted 3 lines

BRs
Wentao Guan