staging: kpc2000: kpc_i2c: Remove unused rw_sem
authorGeordan Neukum <gneukum1@gmail.com>
Sun, 26 May 2019 01:18:27 +0000 (01:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:04:25 +0000 (14:04 -0700)
commitf82ce45273d4d8173243f08b943c9c371385c105
tree24dd2421866d44984eaa071a132e94c2cef13a66
parent46144c1391574f0164def0ca3aa20a6361e4effb
staging: kpc2000: kpc_i2c: Remove unused rw_sem

In pi2c_probe, a rw_sem is initialized and stashed off in the
i2c_device private runtime state struct. This rw_sem is never used
after initialization. Remove the rw_sem and cleanup unneeded header
inclusion.

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