staging: spmi: hisi-spmi-controller: Use devm_ version of ioremap().
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Sep 2020 14:33:38 +0000 (17:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Sep 2020 07:49:34 +0000 (09:49 +0200)
commitdbbc8fdf2ad57629436bcdb421c2d4ad9aa1974f
tree6a23a7991a5c18891eb907df654a1d65ccd1fefb
parente2bb57d233ce973a8e61cbb6ab79a91779a4a6c4
staging: spmi: hisi-spmi-controller: Use devm_ version of ioremap().

The ioremap() was never unmapped in the probe error handling or in the
remove function.  The fix is to use the devm_ioremap() function so it
gets cleaned up automatically.

Fixes: 70f59c90c819 ("staging: spmi: add Hikey 970 SPMI controller driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200918143338.GE909725@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hikey9xx/hisi-spmi-controller.c