Skip to contentSkip to conversation

nvmem: layouts: fix nvmem_layout_bus_uevent

PATCH New [email protected] 1 participant 1 message Nov 14, 2025

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 nvmem: layouts: fix nvmem_layout_bus_uevent

From: Wentao Guan <[email protected]>

correctly check the ENODEV return value.

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

---
Hi Greg,

There is only one nvmem fix in this cycle,
Can you pl pick this fix for 6.18 release.

thanks,
--srini

 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.51.0