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: 59ce403972 ("of: reserved_mem: add support for using more than
one region for given device")
Reported-by: Liviu Dudau <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Reviewed-by: Sylwester Nawrocki <[email protected]>
Reviewed-by: Liviu Dudau <[email protected]>
Acked-by: Rob Herring <[email protected]>
Reviewed-by: Sumit Semwal <[email protected]>