[media] of: reserved_mem: restore old behavior when no region is defined
Change return value back to -ENODEV when no region is defined for given device. This restores old behavior of this function, as some drivers rely on such error code. Fixes: 59ce4039 ("of: reserved_mem: add support for using more than one region for given device") Reported-by: NLiviu Dudau <liviu.dudau@arm.com> Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: NSylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: NLiviu Dudau <Liviu.Dudau@arm.com> Acked-by: NRob Herring <robh@kernel.org> Reviewed-by: NSumit Semwal <sumit.semwal@linaro.org>
Showing
想要评论请 注册 或 登录