Re: [PATCHv2] reset: socfpga: add error handling and release mem-region

2020-12-01 Thread Philipp Zabel
On Mon, 2020-11-09 at 13:21 -0600, Dinh Nguyen wrote: > In case of an error, call release_mem_region when an error happens > during allocation of resources. Also add error handling for the case > that reset_controller_register fails. > > Reported-by: kernel test robot > Reported-by: Dan

[PATCHv2] reset: socfpga: add error handling and release mem-region

2020-11-09 Thread Dinh Nguyen
In case of an error, call release_mem_region when an error happens during allocation of resources. Also add error handling for the case that reset_controller_register fails. Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Dinh Nguyen --- v2: return ret value ---