staging: kpc2000: kpc_i2c: fail probe if unable to map I/O space
authorGeordan Neukum <gneukum1@gmail.com>
Sun, 26 May 2019 01:18:33 +0000 (01:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:04:26 +0000 (14:04 -0700)
commite621c8a108ede08e6ff66524b4a4f756f66e5eeb
tree990151619485a28aa4c12c0506b954a75ec115e5
parent4ff740315aee92ec19add0193cef976e532e34dc
staging: kpc2000: kpc_i2c: fail probe if unable to map I/O space

The kpc2000 driver does not verify whether or not mapping the I/O
space succeeded during probe time. Make the driver verify that the
mapping operation was successful before potentially using that area
in the future.

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