misc: atmel-ssc: lock with mutex instead of spinlock
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Wed, 24 Jun 2020 11:35:41 +0000 (13:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jun 2020 17:10:51 +0000 (19:10 +0200)
commitb037d60a3b1d1227609fd858fa34321f41829911
tree1d82cc9422220efd5a4f118b909e299f0116777f
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68
misc: atmel-ssc: lock with mutex instead of spinlock

Uninterruptible context is not needed in the driver and causes lockdep
warning because of mutex taken in of_alias_get_id(). Convert the lock to
mutex to avoid the issue.

Cc: stable@vger.kernel.org
Fixes: 099343c64e16 ("ARM: at91: atmel-ssc: add device tree support")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lore.kernel.org/r/50f0d7fa107f318296afb49477c3571e4d6978c5.1592998403.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/atmel-ssc.c