OSDN Git Service

rtc: ds1343: remove misuse of IRQF_NO_SUSPEND flag
authorSudeep Holla <Sudeep.Holla@arm.com>
Mon, 21 Sep 2015 15:47:02 +0000 (16:47 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 8 Nov 2015 13:12:25 +0000 (14:12 +0100)
commitcaff0cc419d764287675e55bb46405c6e1fe43ee
tree9f498970ff6c39904bfca0db8bad981f635c4db4
parent93a6f9168f2fbeb5bb000ba079e17a11bedc1a62
rtc: ds1343: remove misuse of IRQF_NO_SUSPEND flag

The IRQF_NO_SUSPEND flag is used to identify the interrupts that should
be left enabled so as to allow them to work as expected during the
suspend-resume cycle, but doesn't guarantee that it will wake the system
from a suspended state, enable_irq_wake is recommended to be used for
the wakeup.

This patch removes the use of IRQF_NO_SUSPEND flags and uses newly
introduce PM wakeup APIs dev_pm_{set,clear}_wake_irq.

Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: rtc-linux@googlegroups.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1343.c