powerpc/64: __ioremap_at clean up in the error case
authorNicholas Piggin <npiggin@gmail.com>
Mon, 10 Jun 2019 03:08:16 +0000 (13:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Jun 2019 10:05:09 +0000 (20:05 +1000)
commita72808a7ec5d340417a91a81e5cabdaa50650f2e
treebf4f3481124482cb42d3ea184d1e93b2b50d76c8
parent9c9f8fb71feed144973a70455e0a4ee3da57ed2a
powerpc/64: __ioremap_at clean up in the error case

__ioremap_at error handling is wonky, it requires caller to clean up
after it. Implement a helper that does the map and error cleanup and
remove the requirement from the caller.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable_64.c