mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
nvmem: layouts: fix nvmem_layout_bus_uevent
correctly check the ENODEV return value.
Fixes: 810b790033 ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d6b9ce75e8
commit
03bc4831ef
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user