]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: kpc_i2c: Use devm_* API to manage mapped I/O space
authorGeordan Neukum <gneukum1@gmail.com>
Sun, 26 May 2019 01:18:34 +0000 (01:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:04:26 +0000 (14:04 -0700)
commitd0a6cb1c2686960e85d5b5d3a06307f40b3f9dd0
treed627026959a995ea8df16c982d6b4014303573b4
parentbf8a6d3f0109f68a90741e587be7c47b566a7056
staging: kpc2000: kpc_i2c: Use devm_* API to manage mapped I/O space

The kpc_i2c 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 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_i2c.c