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: 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> Signed-off-by: Srinivas Kandagatla <srini@kernel.org> Link: https://patch.msgid.link/20251114110539.143154-1-srini@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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)