Skip to content

Commit 03bc483

Browse files
opsiffgregkh
authored andcommitted
nvmem: layouts: fix nvmem_layout_bus_uevent
correctly check the ENODEV return value. Fixes: 810b790 ("nvmem: layouts: fix automatic module loading") CC: [email protected] Co-developed-by: WangYuli <[email protected]> Signed-off-by: WangYuli <[email protected]> Signed-off-by: Wentao Guan <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d6b9ce7 commit 03bc483

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvmem/layouts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int nvmem_layout_bus_uevent(const struct device *dev,
5151
int ret;
5252

5353
ret = of_device_uevent_modalias(dev, env);
54-
if (ret != ENODEV)
54+
if (ret != -ENODEV)
5555
return ret;
5656

5757
return 0;

0 commit comments

Comments
 (0)