nvmem: layouts: fix nvmem_layout_bus_uevent
Subsystems (2)
PATCH v2 1/1 nvmem: layouts: fix nvmem_layout_bus_uevent
correctly check the ENODEV return value.
Fixes 810b790033cc ("nvmem: layouts: fix automatic module loading")
Co-developed-by WangYuli <[email protected]>
Signed-off-by WangYuli <[email protected]>
Signed-off-by Wentao Guan <[email protected]>
---
v2 changelog:
add cc stable.
---
Signed-off-by Wentao Guan <[email protected]>
--- drivers/nvmem/layouts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvmem/layouts.c +1 -1
@@ -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.20.1
Quoted 3 lines · Wentao Guan
correctly check the ENODEV return value.
Applied, thanks!
[1/1] nvmem: layouts: fix nvmem_layout_bus_uevent
commit: 8b6322da3c1fd814c2293525f69b776b80fc6895
Best regards,
Signature · 1 line
Srinivas Kandagatla <[email protected]>