i2c: altera: cleanup spinlock
authorAtsushi Nemoto <atsushi.nemoto@sord.co.jp>
Fri, 8 May 2020 13:14:36 +0000 (22:14 +0900)
committerWolfram Sang <wsa@kernel.org>
Wed, 20 May 2020 13:28:03 +0000 (15:28 +0200)
commitab1c6093f689c48bb28889b3c23888289afd5c34
treefa700623aa50675bf39e55848d6581db57799a2b
parentf89c326dcaa0cb8c3af7764e75eeed4e3f3c879a
i2c: altera: cleanup spinlock

Protect altr_i2c_int_enable() by the mutex and remove unneeded spinlock.

Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
Reviewed-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-altera.c