gpio: pl061: handle failed allocations