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

2020-11-09 Thread Philipp Zabel
On Mon, 2020-11-02 at 13:57 -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

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

2020-11-02 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 --- drivers/reset/reset-socfpga.c