staging: kpc2000: kpc_spi: use devm_* API to manage mapped I/O space
authorGeordan Neukum <gneukum1@gmail.com>
Sun, 2 Jun 2019 15:58:37 +0000 (15:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2019 12:17:01 +0000 (14:17 +0200)
commit677b993a574957975c95c1f01a06d695161e9832
tree60808499b973ca07cc35239c96c6e7d1d53b6948
parent1914e9ebd362af679a4bf384e7960d47788d27e1
staging: kpc2000: kpc_spi: use devm_* API to manage mapped I/O space

The kpc_spi driver does not unmap its I/O space upon error cases in the
probe() function or upon remove(). Make the driver clean up after itself
more maintainably by migrating to using the managed resource API.

Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c