rtc: rv8803: convert spin_lock to mutex_lock
authorOleksij Rempel <fixed-term.Oleksij.Rempel@de.bosch.com>
Thu, 4 Feb 2016 12:45:20 +0000 (13:45 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:15 +0000 (17:08 +0100)
commit9d1fa4c3737ac82520931d940dcd2426719f8dd2
treef3905e8c537b2c1c56dd9454f31a857c8a7610a8
parent7444845b084d7785a2581ba5292aa8adbc1fd439
rtc: rv8803: convert spin_lock to mutex_lock

Fix a scheduling while atomic issue caused by rv8803_set_time()
holding a spinlock during the call to i2c_smbus_read_byte_data().

Signed-off-by: Oleksij Rempel <fixed-term.Oleksij.Rempel@de.bosch.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rv8803.c