rtc: ds1685: passing bogus values to irq_restore
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Mar 2016 10:07:45 +0000 (13:07 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 14 Mar 2016 16:08:28 +0000 (17:08 +0100)
commit8c09b9fdecab1f4a289f07b46e2ad174b6641928
treed29a18e30908ae3637e5a54ad7d803ec27a17e01
parent7e84536cb9ffb6562b3a2584c7454104e750e01a
rtc: ds1685: passing bogus values to irq_restore

We call spin_lock_irqrestore with "flags" set to zero instead of to the
value from spin_lock_irqsave().

Fixes: aaaf5fbf56f1 ('rtc: add driver for DS1685 family of real time clocks')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1685.c