diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-07-06 11:42:01 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-07-07 13:14:12 +0200 |
commit | 735ae2056b3c7296bb188d079c020f606a679c4a (patch) | |
tree | e1662976fdd97074f037b6131c78c503a84008d1 /drivers/rtc/Kconfig | |
parent | 3068a254d5519cd5116f61297462da6d1aa84c20 (diff) | |
download | lwn-735ae2056b3c7296bb188d079c020f606a679c4a.tar.gz lwn-735ae2056b3c7296bb188d079c020f606a679c4a.zip |
rtc: at91rm9200: remove race condition
While highly unlikely, it is possible to get an interrupt as soon as it is
requested. In that case, at91_rtc_interrupt() will be called with rtc ==
NULL.
Solve that by using devm_rtc_allocate_device/rtc_register_device.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/Kconfig')
0 files changed, 0 insertions, 0 deletions