summaryrefslogtreecommitdiff
path: root/drivers/nvmem/layouts.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvmem/layouts.c')
-rw-r--r--drivers/nvmem/layouts.c2
1 files changed, 1 insertions, 1 deletions
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;