[PATCH AUTOSEL 5.4 076/130] reset: socfpga: add error handling and release mem-region