]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e3e51dbc5d3797aef9cda6d1cf157c1f88c0f57
tree24dd2421866d44984eaa071a132e94c2cef13a66
parentf52d37d197f798414d71756e4728f5ee0b47dba8
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