commit | a2ae8323a8e2c5668ae42493d925da1d68ff0324 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | Thu May 31 11:56:42 2018 +0200 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Thu May 31 23:02:11 2018 +0200 |
tree | d423ff31f0615f0b5758d0bf211b6fe5ae859852 | |
parent | a0defd7cfc2804796144545e00aaf74a486adbe7 [diff] |
rtc: ds1685: fix possible race condition The IRQ is requested before the struct rtc is allocated and registered, but this struct is used in the IRQ handler. Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc before requesting the IRQ. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>